Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for AsteroidOS watches #284

Closed
sviscapi opened this issue Oct 15, 2023 · 15 comments · Fixed by #320
Closed

Add support for AsteroidOS watches #284

sviscapi opened this issue Oct 15, 2023 · 15 comments · Fixed by #320

Comments

@sviscapi
Copy link

Dear Adam,

Could you please add support for AsteroidOS watches to Amazfish ?

https://asteroidos.org

I tried https://github.com/AsteroidOS/starship but couldn't find a binary compatible with Sailfish OS 4.5 on aarch64.

Best regards,

Samuel

@jmlich
Copy link
Contributor

jmlich commented Oct 21, 2023

From the documentation https://wiki.asteroidos.org/index.php/BLE_profiles it seems they are using different bluetooth services then was implemented in amazfish. Basically only battery service is the same. In theory, the libasteroid could be adjusted (and it doesn't look that difficult). In real world, some device is needed to debug it. I am not able to help with that unless you want to donate some device.

@RelevanterUsername
Copy link

RelevanterUsername commented Nov 2, 2023

as little contribution from my side I would like to point out that asteroidos support has been implemented in gadgetbridge and that code from there possibly could be used: https://codeberg.org/Freeyourgadget/Gadgetbridge/pulls/3013

@robthebold
Copy link

From the documentation https://wiki.asteroidos.org/index.php/BLE_profiles it seems they are using different bluetooth services then was implemented in amazfish. Basically only battery service is the same. In theory, the libasteroid could be adjusted (and it doesn't look that difficult). In real world, some device is needed to debug it. I am not able to help with that unless you want to donate some device.

I've got a spare device, if you're somewhere I can get it shipped without spending more than the thing is worth. (The watch lives in USA right now.) Lemme know if interested.

@jmlich
Copy link
Contributor

jmlich commented Nov 7, 2023

I am in Czech Republic (EU). Please contact me at [email protected]

@jmlich
Copy link
Contributor

jmlich commented Nov 27, 2023

I have first step of implementation here https://github.com/jmlich/harbour-amazfish/tree/asteroidos However, I am not able to debug it without device. There is only Battery Service right now, so don't expect too much. I even don't know if this works properly.

@RelevanterUsername
Copy link

I could test this, but I don't know how to install it. IS there a compiled rpm package or only the source available?

@jmlich
Copy link
Contributor

jmlich commented Nov 28, 2023

I am making builds just for Ubuntu Touch. Currently, I don't have SailfishOS SDK installed. I guess some CI may help in that area #313

@jmlich
Copy link
Contributor

jmlich commented Dec 8, 2023

@RelevanterUsername
Copy link

I installed armv7 on my device, but cannot connect to watch (sturgeon with asteroidos). What is the correct order of doing the pairing? Or isn't this supposed to be working yet?

@jmlich
Copy link
Contributor

jmlich commented Dec 14, 2023

Its blind implementation. There should be just pairing and battery service (it should show charge level on first page only). And I am not able to verify if this works properly

Recently, I was checking the pairing mechanism, and there is a filter of device name on the device pairing page which hides all devices without expected name (which is now set to AsteroidOS). Workaround is to click back to device selection and reopen the pairing page (it is probably bug, but now it is convenient - see #315). It seems all asteroid devices (bass, sturgeon, dory, ..) must be added to list separately.

I have created new commit to improve this filtering. See
https://github.com/jmlich/harbour-amazfish/actions/runs/7205990724

@RelevanterUsername
Copy link

I installed the rpm and now was able to connect to my watch, but it disconnected immediately. I couldn't see if the battery service worked, because I don't know where I have to watch. Could the disconnect be related to an too old version of asteroidos on the watch? I didn't update at least for one year. Also the watch strangely thought it was connected to my PC and not my phone.

@jmlich
Copy link
Contributor

jmlich commented Dec 17, 2023

I have no idea. You have to check logs. I expect I will be able to check it next week my self.

@jmlich
Copy link
Contributor

jmlich commented Dec 22, 2023

There were number of errors. Please try newer version. I am not sure about pairing process, the smart watch shows pin, which is not handled by system agent. I was able to confirm pin using system wide bluetooth pairing in Ubuntu Touch. Is is not ready to use, but provides interface for future development.

@jmlich jmlich mentioned this issue Dec 24, 2023
6 tasks
@RelevanterUsername
Copy link

I'm super excited to be finally be able to use my asteroidos watch with sailfish. When will this be released?

@robthebold
Copy link

I'm super excited to be finally be able to use my asteroidos watch with sailfish. When will this be released?

If you're brave --as in willing to do a local install -- and eager to try it out now in its current state (which is "working" IMO) see @jmlich 's earlier post for the RPMs built with sfos support:

RPM packages are here
https://github.com/jmlich/harbour-amazfish/actions/runs/7143123539

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants