#1771 Add support for z21Plus in the no1f1 driver

Open
opened 2 weeks ago by olifozzy · 0 comments
olifozzy commented 2 weeks ago

Name:

Add device z21plus

About:

It seems that “z21plus” devices could be handle by No1F1 device


Before reporting a bug, please confirm the following:

  • I have read the wiki, and I didn't find a solution to my problem / an answer to my question.
  • I have searched the issues, and I didn't find a solution to my problem / an answer to my question.
  • If you upload an image or other content, please make sure you have read and understood the github policies and terms of services

I got Gadgetbridge from:

  • F-Droid
  • I built it myself from source code (specify tag / commit)

If you got it from Google Play, please note that version is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can.

Your issue is:

My device is not supported by GadgetBridge but it seems to use the same UUIDS as an already managed device, so maybe a small change could allow it to be handled:

Logs from the DiscoveryActivity:

DiscoveryActivity: z21plus: 62
DiscoveryActivity: found device: z21plus, 78:02:B7:24:XX:XX    
DiscoveryActivity:   supports uuid: 00005554-0000-1000-8000-00805f9b34fb
DiscoveryActivity:   supports uuid: 00004544-0000-1000-8000-00805f9b34fb
DiscoveryActivity:   supports uuid: 00004231-0000-1000-8000-00805f9b34fb
DiscoveryActivity:   supports uuid: 000055ff-0000-1000-8000-00805f9b34fb
DiscoveryActivity:   supports uuid: 00002222-0000-1000-8000-00805f9b34fb

From nRF logs, we can see that the official app register to the following notification: gatt.setCharacteristicNotification(000033f2-0000-1000-8000-00805f9b34fb, true)

For reference, the n01f1 constants are matching : public static final UUID UUID_CHARACTERISTIC_CONTROL = UUID.fromString(“000033f1-0000-1000-8000-00805f9b34fb”); public static final UUID UUID_CHARACTERISTIC_MEASURE = UUID.fromString(“000033f2-0000-1000-8000-00805f9b34fb”); public static final UUID UUID_SERVICE_NO1 = UUID.fromString(“000055ff-0000-1000-8000-00805f9b34fb”);

Maybe adding the “z21plus” as a possible name in No1F1Coordinator.getSupportedType might be enough to get some data.

Your wearable device is:

z21plus (handled by multiple generic app like DayBand, GloryFit, PowerFit...) firmware : DH92HAV000590

Your android version is:

10

Your Gadgetbridge version is:

0.40.1

#### Name: Add device z21plus #### About: It seems that "z21plus" devices could be handle by No1F1 device --- #### Before reporting a bug, please confirm the following: - [X] I have read the [wiki](https://github.com/Freeyourgadget/Gadgetbridge/wiki), and I didn't find a solution to my problem / an answer to my question. - [X] I have searched the [issues](https://github.com/Freeyourgadget/Gadgetbridge/issues), and I didn't find a solution to my problem / an answer to my question. - [X] If you upload an image or other content, please make sure you have read and understood the [github policies and terms of services](https://help.github.com/articles/github-terms-of-service/#1-responsibility-for-user-generated-content) ### I got Gadgetbridge from: * [X] F-Droid * [ ] I built it myself from source code (specify tag / commit) If you got it from Google Play, please note [that version](https://github.com/TaaviE/Gadgetbridge) is unofficial and not supported here; it's also often quite outdated. Please switch to one of the above versions if you can. #### Your issue is: My device is not supported by GadgetBridge but it seems to use the same UUIDS as an already managed device, so maybe a small change could allow it to be handled: Logs from the DiscoveryActivity: DiscoveryActivity: z21plus: 62 DiscoveryActivity: found device: z21plus, 78:02:B7:24:XX:XX DiscoveryActivity: supports uuid: 00005554-0000-1000-8000-00805f9b34fb DiscoveryActivity: supports uuid: 00004544-0000-1000-8000-00805f9b34fb DiscoveryActivity: supports uuid: 00004231-0000-1000-8000-00805f9b34fb DiscoveryActivity: supports uuid: 000055ff-0000-1000-8000-00805f9b34fb DiscoveryActivity: supports uuid: 00002222-0000-1000-8000-00805f9b34fb From nRF logs, we can see that the official app register to the following notification: gatt.setCharacteristicNotification(000033f2-0000-1000-8000-00805f9b34fb, true) For reference, the n01f1 constants are matching : public static final UUID UUID_CHARACTERISTIC_CONTROL = UUID.fromString("000033f1-0000-1000-8000-00805f9b34fb"); public static final UUID UUID_CHARACTERISTIC_MEASURE = UUID.fromString("000033f2-0000-1000-8000-00805f9b34fb"); public static final UUID UUID_SERVICE_NO1 = UUID.fromString("000055ff-0000-1000-8000-00805f9b34fb"); Maybe adding the "z21plus" as a possible name in No1F1Coordinator.getSupportedType might be enough to get some data. #### Your wearable device is: z21plus (handled by multiple generic app like DayBand, GloryFit, PowerFit...) firmware : DH92HAV000590 #### Your android version is: 10 #### Your Gadgetbridge version is: 0.40.1
izzy added the
device request
label 2 weeks ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.