openvidonn icon indicating copy to clipboard operation
openvidonn copied to clipboard

Vidonn X6 Support and Lua

Open romcok opened this issue 10 years ago • 17 comments

Hi Diogo, this is great project and I would like to ask you to add the support to X6 band. It would be great also if you added support for Lua - providing us with the option to make our own functions. I would love to help you with this, but I am not very good at Java.

romcok avatar Jul 02 '15 09:07 romcok

Hi,

I don't have the X6 band, so unfortunately I'm not able to support it.

I also don't know how Lua support would workout in an android app... OpenVidonn simply reads the data that is already available in the bracelet, It doesn't do any calculations.

dgomes avatar Jul 02 '15 09:07 dgomes

I just bought the X6 that is why I started to follow the dgomes GitHub repository. I first want to thank him for his work .. I am a JAVAEE + Web Developper I am now starting (privately) with Android programming. So as soon as I have time left I will start forking dgomes repo (if dgomes agrrees) while trying to write an X6 version of his app ...

javaskater avatar Jul 02 '15 11:07 javaskater

Hi javaskater,

You more than welcome to fork and contribute :)

I'll take any pull requests I receive from the community

dgomes avatar Jul 02 '15 11:07 dgomes

Can you tell me how to pull commands from the bracelet? I want to do some tests.

@javaskater +1 Support for the X6 would help me, official application crashes every time I select an item from the menu.

romcok avatar Jul 02 '15 13:07 romcok

I used https://itunes.apple.com/us/app/lightblue/id639944780?mt=12

dgomes avatar Jul 02 '15 14:07 dgomes

@romcok: I am in - on X6 support.

Need any help?

Seems like there are fewer characteristics. Anyone knows a good BLE listener (working within linux)

computerlyrik avatar Jul 06 '15 18:07 computerlyrik

@dgomes nice thanks

I put to work an older version of the official application, so when I have more time I will look at it.

romcok avatar Jul 07 '15 10:07 romcok

What i found out:

    public static String VIDONN_SERVICE = "0000ffe0-0000-1000-8000-00805f9b34fb";
    public static String VIDONN_OPERATION_READ = "0000ffe1-0000-1000-8000-00805f9b34fb";
    public static String VIDONN_OPERATION_NOTIFICATION = "0000ffe2-0000-1000-8000-00805f9b34fb";
    public static String VIDONN_OPERATION_WRITE = "0000ffe4-0000-1000-8000-00805f9b34fb";

    public static String VIDONN_SERVICE2 = "0000ffe5-0000-1000-8000-00805f9b34fb";
    public static String VIDONN_OPERATION_READ_CURRENT = "0000ffe9-0000-1000-8000-00805f9b34fb";

But these are not enough characteristics to read all the possible measurements. So digging in Source gives something like:

OP_X6_R_AlarmClock = 0x69
OP_X6_R_CurrentValue = 0x3
OP_X6_R_HistoryDetail = 0x66
OP_X6_R_HistoryMap = 0x65
...

Anyone knows how this fits into BLE-Protocol?

computerlyrik avatar Jul 08 '15 14:07 computerlyrik

I am having a rudimentary setup here with the original code running and debugger working. But i have no idea how to read correct values.

I do get some byte[6] array with some integers from VIDONN_OPERATION_READ - but always the same and no match to display data on Vidonn X6

computerlyrik avatar Jul 08 '15 14:07 computerlyrik

VIDONN_OPERATION_READ_CURRENT gives an Array with [0]=Steps as displayed on wristband; other three fields are 0

computerlyrik avatar Jul 08 '15 14:07 computerlyrik

Forget about that, you don’t know their encodings

I would use light blue and check all the characteristics that are available, it’s easy to browse. Then would figure out what matches what.

On 08/07/2015, at 15:11, computerlyrik [email protected] wrote:

What i found out:

public static String VIDONN_SERVICE = "0000ffe0-0000-1000-8000-00805f9b34fb";
public static String VIDONN_OPERATION_READ = "0000ffe1-0000-1000-8000-00805f9b34fb";
public static String VIDONN_OPERATION_NOTIFICATION = "0000ffe2-0000-1000-8000-00805f9b34fb";
public static String VIDONN_OPERATION_WRITE = "0000ffe4-0000-1000-8000-00805f9b34fb";

public static String VIDONN_SERVICE2 = "0000ffe5-0000-1000-8000-00805f9b34fb";
public static String VIDONN_OPERATION_READ_CURRENT = "0000ffe9-0000-1000-8000-00805f9b34fb";

But these are not enough characteristics to read all the possible measurements. So digging in Source gives something like: `` OP_X6_R_AlarmClock = 0x69 OP_X6_R_CurrentValue = 0x3 OP_X6_R_HistoryDetail = 0x66 OP_X6_R_HistoryMap = 0x65 ...

Anyone knows how this fits into BLE-Protocol? — Reply to this email directly or view it on GitHub https://github.com/dgomes/openvidonn/issues/4#issuecomment-119592745.

dgomes avatar Jul 08 '15 15:07 dgomes

@dgomes sure...but i do not have a mac. Is there any way or similar SW to get run on linux? (or better - on android directly?)

PS: reading VIDONN_OPERATION_READ after communication with original app changes - and stays the same...i think it is some kind of stateful protocol (??)

computerlyrik avatar Jul 08 '15 15:07 computerlyrik

Hello, I am working on a Windows client for the X6 and haven't been able to figure out the protocol either. Have you made any advances on your research ?

PS: I was also able to get the current steps, although it doesn't seem to be always a bit behind what the bracelet displays.

thelemmings avatar Aug 13 '15 09:08 thelemmings

Do anyone found a way to use X6?

sriraman avatar Aug 29 '15 11:08 sriraman

Not here.

Using Xiaomi Mi Fit extensively.

Want the X6?

On 29.08.2015 13:19, sriraman wrote:

Do anyone found a way to use X6?

— Reply to this email directly or view it on GitHub https://github.com/dgomes/openvidonn/issues/4#issuecomment-135972935.

computerlyrik avatar Aug 29 '15 12:08 computerlyrik

Yes. Now, I'm trying to build it for X6. So, If you give any reference, It will be useful for me. Can you share the Mi fit link?

Thanks,

sriraman avatar Aug 29 '15 12:08 sriraman

@javaskater @sriraman @thelemmings @romcok Did you guys have any success in making something that works for X6/X6S? I'm definitely gonna try so any tips would be great! :)

cosmojg avatar Jul 29 '16 18:07 cosmojg