We have moved to a new Sailfish OS Forum. Please start new discussions there.
10

Nokia Steel / Steel HR

asked 2018-01-22 13:01:49 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2018-01-22 13:01:49 +0200

Hi together, I am looking for a connection: sailfish X with the Nokia Steel series. Why it dosent support the bluetooth connection? Is it possible to connect the devices and work with the android Health app?

Thanks for your feedback! All the best! Florian

edit retag flag offensive close delete

Comments

3

Bluetooth works indeed very well with SFOS, also on Xperia where for example my NokiaSteel is found when scanning.

As it uses BTLE you need a special application to communicate with it.

I have had in mind to write a connector for NokiaSteel but have not yet had time to do it :)

juiceme ( 2018-01-22 15:04:40 +0200 )edit
1

@juiceme Do you think it is possible to reverse-engineer the data exchange between Steel and the android app and write a Sailfish app with comparable functionailty?

thisisme ( 2018-01-22 15:18:32 +0200 )edit
2

Sure, it is something I do all the time :)

juiceme ( 2018-01-22 15:31:37 +0200 )edit

Great, I'd love to get some hints on that! :)

thisisme ( 2018-01-22 17:18:16 +0200 )edit

4 Answers

Sort by » oldest newest most voted
7

answered 2018-01-22 16:39:27 +0200

DrYak gravatar image

Sailfish OS (like most full blown GNU/Linux) uses BlueZ for accessing bluetooth peripheral.

Android normally uses a different stack : Bluedroid.

Currently, there's no "BlueZ to BlueDroid" translation layer in Alien-Dalvik to make any bluetooth peripheral directly available to Android Apps.

For some things for which there are standard protocols, there are workaround :

  • BlueZ and Pulseaudio make wireless audio device appear as just a standard autio output to which an application can play sound without even knowing that there's bluetooth involved.
  • Wireless controls (like BT keyboards) can show up as plain keyboard and can be used by apps that support them (e.g.: chatting in WhatsApp).

Saddly, in your case there's no such thing as "standard health devices" yet.

edit flag offensive delete publish link more

Comments

3

To be fair, there is quite a lot of stuff standardized in BLE. For example glucose monitors and heart rate sensors. I actually helped someone write a simple app that syncs with a glucose monitor in Qt/QML (it could be ported to SFOS rather quickly). More on that here: https://www.bluetooth.com/specifications/gatt/services

Not sure if smartwatches and fitness bands use the same, standardized GATT services, but if they do someone could probably write a generic "health" app for Sailfish OS that takes all these measurements and does some crazy stuff with it.

pisarz1958 ( 2018-01-22 21:21:53 +0200 )edit
2

@pisarz1958 > regarding standadization :

Sorry, I expressed my self not clearly enough.

Yes, there are a lot of standardized way for device to talk over BLE in the health field (somewhat equivalent to the Classes in USB), and indeed there's even attempts to use them in Sailfish OS apps (Laufhelden's author plans to allow BLE heart-rate monitors).

The problem is that curently Android Apps cannot see Bluetooth directly (no BlueDroid), and there's no equivalent thing for health devices, as the standard keyboard APIs, Audio APIs, etc.

So an Android applications cannot just ask the system for a "plain health device" and let the system handle the connection, the same way that currently WhatsApp can ask for a plain keyboard and BlueZ handles the BT-HID, or Spotify simply asks for a plain audio out and BlueZ and Pulseaudio handle the BT-Media device.

DrYak ( 2018-01-23 12:50:14 +0200 )edit
1

answered 2018-01-22 15:17:02 +0200

thisisme gravatar image

Unfortunately the Android app (Health Mate) cannot use Bluetooth in my Jolla C, I assume it's the same with Xperia X.

As a workaround I have installed Android in a second partition in my laptop (http://www.android-x86.org/) and sync my Nokia Steel from there.

edit flag offensive delete publish link more

Comments

1

Yes, it is like all android applications on SFOS, cannot access HW directly. (Which is a good thing IMHO)

juiceme ( 2018-01-22 15:33:50 +0200 )edit
0

answered 2019-09-12 21:44:10 +0200

raketti gravatar image

If someone is still up to the task.. Whithings has an API doc here: http://developer.withings.com/oauth2/

edit flag offensive delete publish link more

Comments

That looks like an api to their servers, not local direct access. Or did i miss something?

attah ( 2019-09-13 08:36:47 +0200 )edit

Nope you didn't, you would need a Nokia/Withings account to use the app that utilizes those APIs. Still, better than nothing and we'd have a native app with the Withings services.

raketti ( 2019-09-13 08:39:27 +0200 )edit

But it would also require the thing itself to be connected through e.g. the android app already...

attah ( 2019-09-13 08:53:54 +0200 )edit

I didn't look if the API covered the app and device communication or just the server sunc from Withings to the app... 😕 So you may be correct.. Darn.

raketti ( 2019-09-13 09:43:27 +0200 )edit
0

answered 2019-09-13 10:31:05 +0200

mViper gravatar image

Same with Xperia XA2. I use a Withings Pulse HR in sync with an Android Tablet. The Health Mate App on my XA2 with Sailfish OS does show me the before synced data. Yes, there are no notifications this way, but ok enough for me (-:

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
4 followers

Stats

Asked: 2018-01-22 13:01:49 +0200

Seen: 1,818 times

Last updated: Sep 13 '19