yashsingh1/xdaforums huggingface dataset:
[Samsung Gear Fit] Danieldan5152:
So I've been with this project since the beginning. And since it went over to play store I was faced with no way to connect it would connect if I used bluetooth directly but then never finnish since it needs some pairing packet from the app. And in the app it would say bt rfcom failed. So I figured it out .

Open the app while bluetooth is on and then try connecting if fail

go to bluetooth directly and try pairing once done try connecting again if fail

go to bluetooth and delete the pairing turn off bluetooth and close the app from recents then

open the app turn bluetooth on while in the app then connect this should then ask for pairing code and boom connected

if you see the watch disconnects alot you'll have to wipe(reset) the watch in it's settings since for some reason it has some issues with the same device once bluetooth pairing has been deleted , while it was connected via Gearfit manager or Open Fit. Hope this helps some of you guys.
[Samsung Gear Fit] jareddlc:
Seems like there issues with pairing with the gear fit.

The hardest part of this project was to figure out how to successfully pair with the device, I tried many ways on how to pair, and connect, and i figured out a way which wasn't Ideal. Here are some of the issues I encountered, that might help others as well.

Note: when I say paired, this means that the Gear Fit shows up under Settings > Bluetooth > Paired Devices

If you have not paired the gear fit with your phone, when you try to connect via Open Fit, the pair request will show up as a notification and not as a dialog as expected. Solution: simply open the notification and accept the pairing request.

If you do have the device paired with your phone(gear fit manager), but cannot connect via Open Fit. Solution: Go to Settings > Bluetooth > Paired Devices and remove the Gear Fit from the paired devices(I think this will wipe all data from watch), Then either try : 1. Try to pair from the Bluetooth Settings, and after pairing, Connect using Open Fit app, or 2. Connect using Open Fit app.

If this is clear, I will update the google play listing with common connecting/pairing problems. Please if anyone has any other case, please let me know. Thanks
[Samsung Gear Fit] kevin168:
[MENTION=2992563]jareddlc[/MENTION]

1. Open bluetooth setting, scan device, try to pair, wait notification on gear fit, accept then gear fit will wait confirmation from phone.

2.Open app "openfit", check if device selected on list, then press connect on app.

In this sequence i never failed to pair gearfit.
[Samsung Gear Fit] KSmithInNY:
That did the trick. I swear I tried every stupid combination of pairing and sitting on my head upside down while restarting my phone on a blue moon. That is to say, I've tried probably 100 different attempts to pair these, not kidding. The only way i can get it to work is to do it exactly as described above;

- Pair the phone and the band through the phone settings menu

- This will put the band into a "waiting for confirmation screen"

- Quickly open the Open Fit app and now discover the gear fit, then connect.

Thanks dude [MENTION=852730]kevin168[/MENTION]
[Samsung Gear Fit] jareddlc:
[MENTION=3857848]KSmithInNY[/MENTION] I believe you do not have to do it in a timely manner. If you pair from Settings > Bluetooth and if it fails at "waiting for gear fit manager" it should still recognize as a paired device. At any moment after that It should connect via Open Fit. Can you confirm this?
[Samsung Gear Fit] KSmithInNY:
Sure, gonna eat dinner with the wife then i'll reset the band and the app and start over and see what happens if I take my time between connecting with the phone bluetooth, then setting up the open fit app. Give me a couple hours and I'll tag you in my reply. :good:

---------- Post added at 07:14 PM ---------- Previous post was at 06:44 PM ----------

@jareddlc ok done, here is exactly what happened play by play:

1) I opened the phone settings > Bluetooth and selected to pair with the Gear Fit

2) Both the gear fit and my phone presented me with a pairing code to verify, i clicked pair on both

3) The gear fit went to a screen saying it was waiting for confirmation. After about 30 seconds this screen goes away and the gear says "you failed to pair ... etc etc" <-- Exact verbiage can be found in my original post.

IMPORTANT NOTE - Despite the gear band telling me it had failed, it was in fact still paired to my phone over bluetooth. I have not even opened the open fit app at this time.

4) While the Gear band was still telling me it had failed to pair, i opened the open fit app and selected scan (not sure if this was necessary or not but I did it out of habit i guess)

5) I selected Show devices, then selected my gear fit.

6) I selected Connect. At this point a toast notification popped up and said something along the lines of "connecting to: DEFAULT"

7) It connected fine
[Samsung Gear Fit] jareddlc:
thanks [MENTION=3857848]KSmithInNY[/MENTION] Im still surprised it connected with "DEFAULT" I'll take a look at this issue again. Hitting scan is fine. What the scan button does is as follows. Scans for BT devices, If a BT is previously paired, it will not show up on the list of scanned devices, So i manually grab paired devices. and insert into the same list. This is why I'm so surprised it shows up as "DEFAULT". Do you need to do these steps all the times? Or just once? Also does the "DEFAULT" ever change to its correct stuff.
[Samsung Gear Fit] uk74:
Hello,

I would like to ask a question. I use the Open Fit programme on my digital watch, but it does not

show me the missed calls. My question is, whether there is an option to show them, or not.:confused:
[Samsung Gear Fit] jareddlc:
[MENTION=2650681]uk74[/MENTION] currently there is no support for missed calls
[Samsung Gear Fit] djurkash:
Sorry for this question, but would appreciate if someone answers...

If I buy non Samsung device, would I have with open fit app possibility to seamlessly track steps via Google fit, and to see notifications (calls, sms, emails, hangsout) on my gear fit?

And, is it dependable on the device itself?

Thanks...
[Samsung Gear Fit] KSmithInNY:
[MENTION=2992563]jareddlc[/MENTION] at least it's connected though. That's the most important part. And the good news is following these steps I was able to get the band paired and connected two times in a row. I just disconnected and reconnected a few time in a row using the connect/disconnect toggle inside of the Open Fit application and the toast notification has the correct name "Gear Fit" in it when it reconnects. It might have just been an anomaly or one-off issue. It has the correct name now.

I do not need to go through the whole pairing process again. I can disconnect/reconnect without an issue.

Today I'm selling my S6 and the guy who buys it is also considering buying my Gear Fit from me so I probably won't have access to a gear fit after this post. Nice job with open fit. It's very cool. :good:
[Samsung Gear Fit] Danieldan5152:
[MENTION=1475212]djurkash[/MENTION] the seemles sync thing still in process of being modified to work right, but try using the app now instead of Gear Fit Mananger. So that you can see if it does what it needs, like I said no tracking yet but the dev is working on it and we are standing behind him all the way, he figured out how to get everything connected and all this nice things
[Samsung Gear Fit] djurkash:
Ok, thanks a lot Daniel...
[Samsung Gear Fit] krzysiek.karolak1:
Do I have to install something to have weather notifications working? I didn't received any notifications since yesterday. It shoud be now just a hourly notification, right? I have Xperia Z on stock 5.1.1.
[Samsung Gear Fit] cpvyb:
Weather problems

jareddlc, sometimes Weather fails.

The main reason: Some locations does not provided all the weather information. Sometimes humidity, or min temp is missing.

Please change weather.class to:

try {

JSONObject main = res.getJSONObject(MAIN);

if (main.has(MAIN_TEMP)) tempCur = main.getString(MAIN_TEMP); else tempCur = null;

if (main.has(MAIN_TMIN)) tempMin = main.getString(MAIN_TMIN); else tempMin = null;

if (main.has(MAIN_TMAX)) tempMax = main.getString(MAIN_TMAX); else tempMax = null;

if (main.has(MAIN_HUMD)) humidity = main.getString(MAIN_HUMD); else humidity = null;

if (main.has(MAIN_PRES)) pressure = main.getString(MAIN_PRES); else pressure = null;

instead of:

try {

JSONObject main = res.getJSONObject(MAIN);

tempCur = main.getString(MAIN_TEMP);

tempMin = main.getString(MAIN_TMIN);

tempMax = main.getString(MAIN_TMAX);

humidity = main.getString(MAIN_HUMD);

pressure = main.getString(MAIN_PRES);
[Samsung Gear Fit] jareddlc:
[MENTION=6318226]cpvyb[/MENTION] merged! thanks for the feature, I also added the JSON fixes. I will probably make a release to play store tomorrow
[Samsung Gear Fit] jareddlc:
v1.4.0

Updated to google play store.

Changes:

Find device provided by [MENTION=6318226]cpvyb[/MENTION]

Weather and Application names bug fixes

New icons

Help button

Donate Button

Nice seeing the community adding features.
[Samsung Gear Fit] alemol:
Meixu MX5 call rejects

Hi jareddlc!

Thanks for you app! It works great, but I still have the same problem as Kevin - call rejects does not work on my Meizu MX5. As far as I understand from your post - it is problem of non-stock Android. But I full of wish to fix this problem. Could you please provide me a instruction or link how I can debug this issue? May be some debug info could help you to fix the issue?
[Samsung Gear Fit] jareddlc:
[MENTION=6942541]alemol[/MENTION] sure thing, here are steps needed to help me debug any issue:

Download a logcat application, I use "CatLog" free on the play store

Record a log with the filter: OpenFit

Provide me with the log in a PM or if you know the error feel free to post it in the thread.

I will be specifically looking for the log message "Ending call" or "Failed ending call". You should always see "Ending call", but only see "Failed ending call" if there was an error. It should print out what went wrong. Thanks for wanting to help.
[Samsung Gear Fit] alemol:
Call rejects issue

OK, thanks for explanations. When I get the call and when I swipe call to reject on my GearFit I see next strings in logcat:

D/OpenFit:BluetoothLeService(17942): Received:
D/OpenFit:BluetoothLeService(17942): ��������U��������
D/OpenFit:eek:penFitService(17942): handleMessage: Bundle[{bluetoothData=bluetoothData, data=[B@1ccfbc5c}]
D/OpenFit:eek:penFitService(17942): Service received: 090A0000000301F1A9F65500000000

I was trying to find 090A0000000301F1A9F65500000000 opcode in your OpenFitApi.java file, but without success. Is it a problem with firmware mismatch? My current firmware is R350XXU0BND8.
[Samsung Gear Fit] Gh0stw4lk3r:
Am i doing something wrong? Still not getting any weather notification. The rest works great!
[Samsung Gear Fit] jareddlc:
[MENTION=2688942]Gh0stw4lk3r[/MENTION] can you please provide me with a log file. Please follow directions listed above.
[Samsung Gear Fit] jareddlc:
[MENTION=6942541]alemol[/MENTION] It would appear so. It seems like your message is different than what I have got. Can someone else confirm this?
[Samsung Gear Fit] Gh0stw4lk3r:
[MENTION=2992563]jareddlc[/MENTION] all i see about the weather in the logcat is:

09-15 09:00:00.012 D/OpenFit:openFitService(18218): #####CronJob#####
09-15 09:00:00.279 D/OpenFit:Location(18218): Location: Uitgeest, null Nederland

(i am running 5.1.1 on a oneplus one)
[Samsung Gear Fit] jareddlc:
[MENTION=2688942]Gh0stw4lk3r[/MENTION]

do you see the following log: "Getting weather info for: " + cityName
[Samsung Gear Fit] Gh0stw4lk3r:
nope nothing like that in the log

next entry in the log is

09-15 09:00:00.012 D/OpenFit:eek:penFitService(18218): #####CronJob#####
09-15 09:00:00.279 D/OpenFit:Location(18218): Location: Uitgeest, null Nederland
09-15 09:01:24.094 D/OpenFit:NotificationService(18218): Captured notification message: Microsoft Excel, Twitter, Facebook, ZEDGE™ Ringtones & Wallpapers en HP All-in-One Printer Remote from source:com.android.vending
[Samsung Gear Fit] jareddlc:
my guess is that countrycode is invalid. Test this version for me please. Its a test version so it will try to get weather very often.

But its logging what I used before, and the new stuff. [MENTION=2688942]Gh0stw4lk3r[/MENTION]
[Samsung Gear Fit] Gh0stw4lk3r:
this version shows me the weather :) only it notifies every minute of the weather.
[Samsung Gear Fit] jareddlc:
yep, its only test so you wont have to wait 1hr to see if it works. I'll probably update the official play store tomorrow.
[Samsung Gear Fit] Gh0stw4lk3r:
tnx for your work :) i will disable weather for now and wait for the playstore version.
[Samsung Gear Fit] jareddlc:
v1.4.1

Changes

Weather bug fixes

Possible upcoming features:

Fitness data

Multi-language support?

Weather stats for clock?
[Samsung Gear Fit] garrax:
[MENTION=2992563]jareddlc[/MENTION] how will you proceed with fitness data?

Days ago you talk about Google Fit, will you modify the apk or which way will you export data?
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION]

Language can I help with afrikaans
[Samsung Gear Fit] jareddlc:
[MENTION=5914883]Danieldan5152[/MENTION] sounds good, I never tried localization or Internalization, But I will look into seeing if it is difficult or not.

[MENTION=5416775]garrax[/MENTION] I havent looked into Google Fit yet, But I assume I will integrate Google Fit into Open Fit, which will prompt the user to accept of some sort, and then beable to send the data to Google Fit. Meaning the user will not need to leave the app. I use an App called Strava, which syncs to Google Fit, and Google Tracks also Syncs to Google Fit.

But there is still the big part of trying to reverse engineer the actual data. I almost have pedometer information done, but havent yet looked into other such as heart rate, or excercise etc.
[Samsung Gear Fit] jareddlc:
I really hope I can figure this out.
[Samsung Gear Fit] cpvyb:
Jareddlc, two things:

1.- I have an updated find device implementation with pop-up message. Do you have github up to date to make a pull-request.

2.- I disassemble de Java of the gearfitmanager application from Samsung, and there are a lot of clues of how the protocol works. Let me know how can I help you that. I was know looking in how to send the application icons, and split properly the notifications. And reading the gearfirmanager code is easier than debugging bluetooth messages.

Regards
[Samsung Gear Fit] garrax:
[MENTION=2992563]jareddlc[/MENTION] I don't know if it something interesting, but it is a news of today: S-Health is compatible with every android phone.

I downloaded it and it works stand alone, doesn't see Gear Fit.

http://www.androidauthority.com/2nd-gen-chromecast-details-643020/
[Samsung Gear Fit] Cloud Strife 48:
Can OpenFit run on Samsung device that cannot run GearFit Manager?
[Samsung Gear Fit] Danieldan5152:
[MENTION=6176106]Cronus[/MENTION] yes naturally almost any device
[Samsung Gear Fit] Cloud Strife 48:
Thanks. I'm gonna try it later. I just thought it wouldn't work as it said it's for "native non-samsung devices" so I asked.
[Samsung Gear Fit] djurkash:
Bought gear fit again this morning, and managed to connect it with my ancient one X, and it works...

Looking forward to integrating fitness data...
[Samsung Gear Fit] jareddlc:
[MENTION=5416775]garrax[/MENTION] thx [MENTION=6318226]cpvyb[/MENTION] I have local changes for improved location for weather. Its another bugfix, but it shouldn't have merge conflicts. The javacode hasnt helped me much as it is a mess in terms for getting heart rate, If you have better success then yes feel free. Yesterday my findings where slightly different than my test data, it seems like when requesting pedometer data, I get all the data on my phone. so i have a question for Gear Fit Manager users.

When syncing pedometers does it also remove entries from the watch? Like sync to phone and then wipe from watch?
[Samsung Gear Fit] ziotidus:
For see the weather notification on the gear fit i must have a samsung phone?

With my Nexus 6 5.1.1 stock i don't see nothing and also the gear fit manager i don't find the style watch of the weather.. ;(

I've the Gear Fit Manager version 1.117.0306 Lollipop Beta 2
[Samsung Gear Fit] jareddlc:
[MENTION=1720640]ziotidus[/MENTION] weather notifications have 3 options: OFF, Every hour (Celsius), Every hour (Fahrenheit). You will need to select option, and it should happen automatically. what would also be helpful, is if you provide me with a logcat file, To do this please look at the first post under the section "How to debug" thanks! Currently there is no support for the clock weather style.
[Samsung Gear Fit] Aegnor:
Yes, i'm currently using this app on S5 G900F with CM 12.1. Very nice and useful project, keep up the good work :highfive:
[Samsung Gear Fit] ziotidus:
Ok, i've uninstall Gear Fit Manager and re-pair the Gear Fit with OpenFit and now i see the Watch Style with the weather my fault man..

Where i can find logcat in playstore that i don't find it???

I've try and OpenFit don't see Spotify for control media but Google Play Music.. i've try to disable/hibernate Google Play but nothing i can use Spotify.. do you can? It's possibile use it what prefer app for music? I don't try the option in Lollipo 5.1.1.

Thx man
[Samsung Gear Fit] djurkash:
I am experiencing constant connection drops...Even if the phone is sitting in 1m radius from the fit, any obvious reason?
[Samsung Gear Fit] estebandu:
Hi! it seems to be a bluetooth problem. I have been using open fit with my galaxy s3 with CM 11, with no drops. I recently update the app. :o
[Samsung Gear Fit] djurkash:
Could be, as I am using One X with CM11, as it enables 4.0 le, which is unavailable using stock rom, so it could be some drivers mix up...
[Samsung Gear Fit] jareddlc:
[MENTION=1720640]ziotidus[/MENTION] I forgot to mention for CatLog you will need root. Currently the media controller only is supported by a few music players. It has become clear I need to change the functionality of this, so hopefully it can support more audio applications. some which come to mind are:

stock music app

google play music

spotify

pandora

Im not certain if i will be able to add compatibility but i will check.

[MENTION=1475212]djurkash[/MENTION] That is odd. It works fine on my GS4 with CM12.1 If you have root, please provide me with a log: see the first post on how to get a log.
[Samsung Gear Fit] estebandu:
Thank you. Sometimes when I received a whatsapp. The notification message is this:

Sorry I can't attach the picture...

********

Whatsapp

Time XX:XX

OpenFit

Message

Icon

Trash Delete

Icon

Show on Device

*********
[Samsung Gear Fit] Cloud Strife 48:
Well, I take that OpenFit only runs on both Samsung and Non-Samsung devices with 4.4.4 Kitkat to Lollipop. If not, then what's the least OS this OpenFit app can run on?
[Samsung Gear Fit] jareddlc:
Open Fit just needs 4.4 to work. Other features related to gear fit will vary depending on rom . example alarms notifications
[Samsung Gear Fit] jareddlc:
Yes this is a message when a notification does not have any content. I need to improve this logic, but the difficult part is that each app will be different.
[Samsung Gear Fit] djurkash:
It has to be with faulty drivers, as CM version I've been using on OneX is a milestone, not the final one.

I've switched the gear fit to my second phone, Sony Z Ultra, and so far it works seamlessly...

I'll let you know if something goes wrong here...thanks
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] could you maybe choose default alarm since i use timly
[Samsung Gear Fit] jareddlc:
[MENTION=5914883]Danieldan5152[/MENTION]

When you mean "choose default" you mean having option to choose an application to listen for alarms?

Ive had this thought on my mind for a while, since MMS doesn't appear to be working, I was thinking for things like MMS,Email,Alarm, allowing users to select the app they would like to use. Example, currently Phone calls, and SMS listen for system activity, however, another solution is to allow user to select an app for SMS and whenever that app receives a notification treat it as SMS. same would go for alarm and Email. However alarm would still have the inability to dismiss alarms from the watch.
[Samsung Gear Fit] jareddlc:
ugh fitness data

Seems like the structure includes alot more data than I thought. Will need to try to figure what this data is, it is not what I expected it to be. I think this maybe heart rate? do those numbers make sense. I know its not the pedometer, becuase that data includes calorie and distance
[Samsung Gear Fit] androidloc:
Have you been able to figure out some details concerning the gearfit service in regards of "app connect"?

Sadly none of the provided app connect from google play works under Open Fit http://xdaforums.com/showthread.php?t=2734334

When choosing an app from the app connect menu on the Gear Fit it says on my mobile: "You should install Gear Fit Manager application first" - so my guess is those apps are inspecting some kind of a running Samsung service....
[Samsung Gear Fit] Gh0stw4lk3r:
Does it have something to do with this?

http://stackoverflow.com/questions/4703731/converting-a-string-like-2-12e-6-to-a-double
[Samsung Gear Fit] jareddlc:
[MENTION=3019178]androidloc[/MENTION] currently CUP apps are feature I have not yet looked into, and my goal is to be able to finish a few other features before tackling that beast.

[MENTION=2688942]Gh0stw4lk3r[/MENTION] no that is not the issue here. A while ago I reversed engineered he pedometer data, but looking at the current data given to me, it appears not to be pedometer data. So i need to figure out what type of data it is, but the dates are about 2 weeks old and the gear fit doesnt show data that old.

[MENTION=6318226]cpvyb[/MENTION] woah! im not sure if you can post code like that here. Id suggest sending a PM with that data instead. But thanks for the help! Seems like there may be alot of useful information there. I will probably not get to start in this feature yet as I want to do a few more features such as fitness, missed calls, weather clock, and improve UX, as I see a common complaint from the play store, is users not knowing how to connect with the gear fit, or WhatsApp messenger not working.
[Samsung Gear Fit] thijsnl:
[MENTION=2992563]jareddlc[/MENTION] i made an application that passes btsnoop data from my phone to a linux machine that parses the data realtime (instead of wireshark, because it cannot pipe btsnoop data) so that really helps.finding right data
[Samsung Gear Fit] djurkash:
Unfortunately, connection drops continued on Z Ultra as well...Looks like it's triggered by some of the notifications, even simple sms or calendar event is causing the breakdowns. And it happens just at a time when phone should send it to the watch. I don't have a root to record a log, if I find some time during weekend, I'll try to obtain it, and record...
[Samsung Gear Fit] jareddlc:
[MENTION=1475212]djurkash[/MENTION]

yes i am getting disconnects. I will look into it
[Samsung Gear Fit] alexxio:
can openfit export exercises sessions to an external server?
[Samsung Gear Fit] kisi2015:
thanks, works with htc one mini 2 cm 12 and 5.1.1
[Samsung Gear Fit] jareddlc:
[MENTION=263364]alexxio[/MENTION] Im currently working on reverse engineering the fitness data. However I am thinking this feature would be a paid feature, It has taken me an incredibly long amount of time to try to reverse engineer this data, and I am still not figure it out. Im hoping to be able to correctly decipher the data.
[Samsung Gear Fit] alexxio:
Maybe i can help you..are you doing alla this alone? If u want send me a private message with some istruction, and i will give a look at datas you collected.

Thank you btw
[Samsung Gear Fit] jareddlc:
this fitness data always seems to be changing on me :(
[Samsung Gear Fit] sdroamt:
I can help you with the Italian translation
[Samsung Gear Fit] kisi2015:
hi

do u know when will be the next update? will it be contain sync Pedometer and Sleep?