Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Xiaomi MI Band 4 - Can you create an apt?

Here you can discuss every aspect of Debian. Note: not for support requests!
Post Reply
Message
Author
User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Xiaomi MI Band 4 - Can you create an apt?

#1 Post by Scorpion »

I' m struggling over anbox and virt-manager, I would like a native debian apt for that hardware.
Synchronizing it with the pc instead of the phone.

Can you make it?

Edit: For apt I meant app(lication).
Last edited by Scorpion on 2020-07-21 06:41, edited 1 time in total.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#2 Post by stevepusser »

I'm not even sure what you're trying to ask...
MX Linux packager and developer

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#3 Post by Scorpion »

Xiaomi MI Band 4 is a smart watch that has sleep and hear rate monitoring function. It only has the bluetooth to communicate.

You can view the stats only on the android app "Mi Fi" https://play.google.com/store/apps/deta ... alth&hl=en and you can change some setting only there.
Or in another compatible app like "Tools & Mi Band", I never tried it.

So I need a virtual machine that has also the bluetooth, but a native debian apt would be the best.
Last edited by Scorpion on 2020-07-21 06:42, edited 2 times in total.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Xiaomi MI Band 4 - Can you create an apt?

#4 Post by pylkko »

what is a "Debian native apt"?

There are a few fully open and hackable smart watches out there. But most of them are not. There are some where you can flash the firmware, and thus replace the one the manufaturer offers with a free one.

Even though the non-open ones use bluetooth low energy, which allows to send data out and read without pairing, some of them are encrypting the stream. If it is not, you can read it with a BLE app.

I googled "mi band 4 and open source" and found a link to a sofware developed by research group called ICT innovations in Health Care, Windesheim University of Applied Sciences.
https://github.com/ictinnovaties-zorg/openwindesheart

User avatar
eriefisher
Posts: 130
Joined: 2008-06-04 03:49
Location: Ontario's South Coast

Re: Xiaomi MI Band 4 - Can you create an apt?

#5 Post by eriefisher »

It would likely be easier to buy a cheap android phone. After all it's meant t be portable.
____________________________________________
There's a manual?
Siduction
Debian Sid
Xfce4 4.14

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#6 Post by Scorpion »

"Debian native apt"= apt that I can install with apt install <apt>.
Or at least is an apt designed for linux and not for android.

I did some searches to see if is possible to use the pc, I found nothing.

I can see on your link:
The features have been tested with Android/iOS phones in combination with the Mi Band 3/Xiaomi Band 3.
After there is the section for the Band 4 but I suppose is for the phone, I want to use the pc.

It would likely be easier to buy a cheap android phone. After all it's meant t be portable.
Is it meant to be portable? I want to use it on the pc at home.

User avatar
pylkko
Posts: 1802
Joined: 2014-11-06 19:02

Re: Xiaomi MI Band 4 - Can you create an apt?

#7 Post by pylkko »

apt is a package manager, you probably mean a debian package like a .deb-file.

I researched the mi band 4 a bit more and it appears that you can indeed read the ble characteristics despite them being encrypted. apparently you need to do the first ever pairing with the native app, and this allows you to fetch the key. after this you can just read it like a book.

Bluetooth low energy is different from the standard bluetooth protocol, in the sense that you do not need to pair the device, the device can send out pulses of data. For example, a watch can read your pulse with a sensor and broadcast this out every 5 seconds. Then any device near that has a ble device can read them (there are multiple apps for reading ble signals in app stores).

Here is a python library for that purpose. it even comes with a ready made console program with a pseudo-graphical interface (similar to ncurses)

all you need to do is install a package with apt, clone the code and get your key (the instructions are on the github page)

https://github.com/satcar77/miband4

Dai_trying
Posts: 1100
Joined: 2016-01-07 12:25
Has thanked: 5 times
Been thanked: 16 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#8 Post by Dai_trying »

My *guess is that you want to create an apt-mirror to have all your required .deb files available from a local computer/server, I have this set up for my AMD64 systems and it was not too difficult to set-up after reading the manuals.

https://packages.debian.org/buster/apt-mirror

* difficult to understand exactly what you want

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Xiaomi MI Band 4 - Can you create an apt?

#9 Post by cuckooflew »

Scorpion wrote:I' m struggling over anbox and virt-manager, I would like a native debian apt for that hardware.
Synchronizing it with the pc instead of the phone.

Can you make it?
"Can you make it?"

Sounds like the OP wants you, or someone else on the forum to make it for them...... :?:
I would get busy with it, but am not feeling well at all, guess that would be another topic for "off topic" though :cry:
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#10 Post by Scorpion »

It seems so, I would like the debian developers to do that. Aren' t they the most suited?

Where should I ask?

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#11 Post by Scorpion »

pylkko wrote:apt is a package manager, you probably mean a debian package like a .deb-file.

I researched the mi band 4 a bit more and it appears that you can indeed read the ble characteristics despite them being encrypted. apparently you need to do the first ever pairing with the native app, and this allows you to fetch the key. after this you can just read it like a book.

Bluetooth low energy is different from the standard bluetooth protocol, in the sense that you do not need to pair the device, the device can send out pulses of data. For example, a watch can read your pulse with a sensor and broadcast this out every 5 seconds. Then any device near that has a ble device can read them (there are multiple apps for reading ble signals in app stores).

Here is a python library for that purpose. it even comes with a ready made console program with a pseudo-graphical interface (similar to ncurses)

all you need to do is install a package with apt, clone the code and get your key (the instructions are on the github page)

https://github.com/satcar77/miband4
Yes I mean a debian package, with apt I meant a (debian) ApPlicaTion.

I will check this project, I will borrow a phone eventually for that time that you need it, thanks.

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Xiaomi MI Band 4 - Can you create an apt?

#12 Post by RU55EL »

Scorpion wrote: Yes I mean a debian package, with apt I meant a (debian) ApPlicaTion.
The Debian program apt is an Advanced Package Tool, not an ApPlicaTion.

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#13 Post by stevepusser »

RU55EL wrote:
Scorpion wrote: Yes I mean a debian package, with apt I meant a (debian) ApPlicaTion.
The Debian program apt is an Advanced Package Tool, not an ApPlicaTion.
Yes, apt is already taken. It only leads to confusion when you use it for something else in the Debian forum, like if I asked for a deb file, only to explain later I meant a "Dynamic Equilibrium Brake" configuration file--Guh!
MX Linux packager and developer

cuckooflew
Posts: 677
Joined: 2018-05-10 19:34
Location: Some where out west
Been thanked: 1 time

Re: Xiaomi MI Band 4 - Can you create an apt?

#14 Post by cuckooflew »

Scorpion wrote:It seems so, I would like the debian developers to do that. Aren' t they the most suited?

Where should I ask?
https://www.debian.org/contact
Debian Development

If you have questions that are more development related, there are several development mailing lists in Debian that you can use to contact our developers.

The general development mailing list is debian-devel: you cansubscribe to it and then send e-mail to debian-devel@lists.debian.org.
Please Read What we expect you have already Done
Search Engines know a lot, and
"If God had wanted computers to work all the time, He wouldn't have invented RESET buttons"
and
Just say NO to help vampires!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#15 Post by stevepusser »

The standard procedure is to use reportbug to file a bug report against it asking that it be packaged. I think the acronym for it is "WNP". You are asked to provide as much information as possible about it, be clear in that, and you should use standard terms for what you mean.
MX Linux packager and developer

User avatar
RU55EL
Posts: 546
Joined: 2014-04-07 03:42
Location: /home/russel

Re: Xiaomi MI Band 4 - Can you create an apt?

#16 Post by RU55EL »

stevepusser wrote:
RU55EL wrote:
Scorpion wrote: Yes I mean a debian package, with apt I meant a (debian) ApPlicaTion.
The Debian program apt is an Advanced Package Tool, not an ApPlicaTion.
Yes, apt is already taken. It only leads to confusion when you use it for something else in the Debian forum, like if I asked for a deb file, only to explain later I meant a "Dynamic Equilibrium Brake" configuration file--Guh!
Just for fun I looked up abbreviations for 'application'. APT wasn't listed among the 11 abbreviation variations, at least at the first place I looked.

[edit] 'apt' does have quite the list. [/edit]

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#17 Post by Scorpion »

Yes, I used apt for application (instead of app) because of the Advanced Package Tool, but it only leads to confusion.

Can someone make a debian package to obtain the authentication key? And then maybe add it to the https://github.com/satcar77/miband4/issues/new.

User avatar
Scorpion
Posts: 389
Joined: 2018-10-17 11:38
Has thanked: 5 times

Re: Xiaomi MI Band 4 - Can you create an apt?

#18 Post by Scorpion »

pylkko wrote:apt is a package manager, you probably mean a debian package like a .deb-file.

I researched the mi band 4 a bit more and it appears that you can indeed read the ble characteristics despite them being encrypted. apparently you need to do the first ever pairing with the native app, and this allows you to fetch the key. after this you can just read it like a book.

Bluetooth low energy is different from the standard bluetooth protocol, in the sense that you do not need to pair the device, the device can send out pulses of data. For example, a watch can read your pulse with a sensor and broadcast this out every 5 seconds. Then any device near that has a ble device can read them (there are multiple apps for reading ble signals in app stores).

Here is a python library for that purpose. it even comes with a ready made console program with a pseudo-graphical interface (similar to ncurses)

all you need to do is install a package with apt, clone the code and get your key (the instructions are on the github page)

https://github.com/satcar77/miband4
I got the key but that project doesn' t have the band settings, sleep monitoring and more.
Most of the functions are available on the band.

Can someone use https://codeberg.org/Freeyourgadget/Gadgetbridge to create a debian package?
It is an open source app, available also on github.

Post Reply