#2157 Device support / Lefun / M4

Open
opened 2 weeks ago by Stefaan · 2 comments
Stefaan commented 2 weeks ago

Before reporting a bug, please confirm the following:

I got Gadgetbridge from:

Your issue is:

Tried scanning for devices multiple times, but nothing shows up.
The same phone can find my M4 smartwatch though, when going to Android's bluetooth settings screen (and I can pair with it).

I tried enabling "Write logfiles", but nothing shows up in my nodomain.dreeyourgadget.gadgetbridge/files in the file explorer.
Gadgetbridge confirms this when accessing its debug menu, then clicking "SHARE LOG" results in "File does not exist"

I have checked in "Security" that all requested permissions have been granted to Gadgetbridge (actually I refused "start screen shortcuts", but that shouldn't matter I think)

Your wearable device is:

Info seen on device's own screen:
HW V1.2
SW V50.42
MAC C0:00:F2:B2:0B:E4

Identifies itself as "M4" when scanning bluetooth.
Suggests use of "Lefun App" after pressing some buttons. (I saw "Lefun" is among the recently added supported devices)

Manual says: "Model: ISW.66.403", but it doesn't turn up anything on Google.
Brand on box is: "iSPORT". Product: "Activity Tracker"
Box shows QR code that points to: http://ledong.boyu199.com/download/index4.html
which points to the "Lefun Health" app.
EAN: 8719179664037 (with again ISW.66.403 above the bar-code)

Your android version is:

10 QKQ1.190828.002

Your Gadgetbridge version is:

0.51.0

Disclaimer: this is my first attempt at using GadgetBridge. I may well be making some obvious mistakes, even though I tried to be very thorough.

#### Before reporting a bug, please confirm the following: - [X] I have read the [wiki](https://codeberg.org/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://codeberg.org/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 [Codeberg Terms of Use](https://codeberg.org/codeberg/org/src/branch/master/TermsOfUse.md) ### I got Gadgetbridge from: * [X] F-Droid * [ ] I built it myself from source code (specify tag / commit) #### Your issue is: Tried scanning for devices multiple times, but nothing shows up. The same phone can find my M4 smartwatch though, when going to Android's bluetooth settings screen (and I can pair with it). I tried enabling "Write logfiles", but nothing shows up in my nodomain.dreeyourgadget.gadgetbridge/files in the file explorer. Gadgetbridge confirms this when accessing its debug menu, then clicking "SHARE LOG" results in "File does not exist" I have checked in "Security" that all requested permissions have been granted to Gadgetbridge (actually I refused "start screen shortcuts", but that shouldn't matter I think) #### Your wearable device is: Info seen on device's own screen: HW V1.2 SW V50.42 MAC C0:00:F2:B2:0B:E4 Identifies itself as "M4" when scanning bluetooth. Suggests use of "Lefun App" after pressing some buttons. (I saw "Lefun" is among the recently added supported devices) Manual says: "Model: ISW.66.403", but it doesn't turn up anything on Google. Brand on box is: "iSPORT". Product: "Activity Tracker" Box shows QR code that points to: http://ledong.boyu199.com/download/index4.html which points to the "Lefun Health" app. EAN: 8719179664037 (with again ISW.66.403 above the bar-code) #### Your android version is: 10 QKQ1.190828.002 #### Your Gadgetbridge version is: 0.51.0 Disclaimer: this is my first attempt at using GadgetBridge. I may well be making some obvious mistakes, even though I tried to be very thorough.
vanous added the
device request
label 1 week ago
vanous commented 1 week ago
Poster
Collaborator

Hmm, we have the Lefun device, thanks to @cyanic , i am not sure if this device is very diffeent or if there are various names... you could try to edit the name or the condition here: https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/lefun/LefunDeviceCoordinator.java#L61

cheers
P.

Hmm, we have the Lefun device, thanks to @cyanic , i am not sure if this device is very diffeent or if there are various names... you could try to edit the name or the condition here: https://codeberg.org/Freeyourgadget/Gadgetbridge/src/branch/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/lefun/LefunDeviceCoordinator.java#L61 cheers P.
cyanic commented 1 week ago
Poster

Yeah, the device detection currently just looks at whether the name of the device is "Lefun". The device doesn't use standard device identification, and the ID it does offer isn't exposed through Gadgetbridge's device abstraction. I'm hesitant to add M4 to the detected names because it could bring up a lot of false positives.

BTW, if you can post a link to where you bought yours from, I can get one and take a look at whether there's any significant protocol differences. I have another one on hand that has weather, music control, and wallpaper upload that I'll look into implementing at some point.

Yeah, the device detection currently just looks at whether the name of the device is "Lefun". The device doesn't use standard device identification, and the ID it does offer isn't exposed through Gadgetbridge's device abstraction. I'm hesitant to add M4 to the detected names because it could bring up a lot of false positives. BTW, if you can post a link to where you bought yours from, I can get one and take a look at whether there's any significant protocol differences. I have another one on hand that has weather, music control, and wallpaper upload that I'll look into implementing at some point.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.