macless-haystack icon indicating copy to clipboard operation
macless-haystack copied to clipboard

Feature-Request: Battery-Information for NRF51xx

Open MeierAlex opened this issue 1 year ago • 7 comments

Hallo,

Is there a way to integrate a battery status in a way that it can be displayed in the (web-)app ? It looks like there is alredy something going on in an other project and I think this information would be very benificial to be able to distinguish between a tag with no network vs a tag with dead battery.

Here is a link to the other project (I hope it is ok to post it here): https://github.com/dakhnod/FakeTag/blob/02755369eb18e34bb0cfb76a2dd165136ee35aa3/main.c#L33-L38

The way the battery level is read and transmitted seems streight forward to me, but is there already an existing integration in the frontend ?

Thank you, Alex

MeierAlex avatar May 28 '24 08:05 MeierAlex

Hello,

this is not possible, because the project supports various tags and most of them have this feature.

Kind Regards, Danny

dchristl avatar Jun 03 '24 12:06 dchristl

Hallo,

so is this feature already implemented in the Backend/Webinterface and just needs to be enabled on the tag hardware or do you mean that this is not supported beause some tags support this "natively" ? If so can you give me an example of such a tag ? I would be very happy to have this feature for my tags because otherwise it ill be very hard to identify a tag with a low battery.

Do you have another solution in mind for the battery issue? Basically, firmware adaptations and self-compiling are no problem for me.

MeierAlex avatar Jun 03 '24 20:06 MeierAlex

This is the feature I want this time. Can you dev it ?

Hallo,

so is this feature already implemented in the Backend/Webinterface and just needs to be enabled on the tag hardware or do you mean that this is not supported beause some tags support this "natively" ? If so can you give me an example of such a tag ? I would be very happy to have this feature for my tags because otherwise it ill be very hard to identify a tag with a low battery.

Do you have another solution in mind for the battery issue? Basically, firmware adaptations and self-compiling are no problem for me.

cuonghm90 avatar Jun 09 '24 12:06 cuonghm90

No this feature is not implemented, because a lot of Tags are supported and most (I think all, except NRF5x) doesn't have this feature. Most users uses 1$ devices from Aliexpress without this feature. It seems nice to add such a feature, but only for a couple of users and I sadly really don't have time for that currently.

Do you have another solution in mind for the battery issue? Basically, firmware adaptations and self-compiling are no problem for me.

Not really, you have to extend the firmware to send the battery informations and also to read it out in the flutter app. This seems doable, but there have to be a little bit research.

dchristl avatar Jun 10 '24 15:06 dchristl

Most users uses 1$ devices from Aliexpress without this feature Can you tell about which devices you are talking here ? I would be very interested ;)

I think the changes in ther NRF Firmware would not be that much - if you ever think of implementing this feature I can offer to do the changes for the NRF51 (looking at the exiasting code it seems like "piggybacking" some additional data to the location reports is not a problem at all). So if you decide to do the changes on the flutter app (which I can not do), just drop me a message for the NRF implementation ;)

MeierAlex avatar Jun 11 '24 09:06 MeierAlex

Most users uses 1$ devices from Aliexpress without this feature Can you tell about which devices you are talking here ? I would be very interested ;)

I think the changes in ther NRF Firmware would not be that much - if you ever think of implementing this feature I can offer to do the changes for the NRF51 (looking at the exiasting code it seems like "piggybacking" some additional data to the location reports is not a problem at all). So if you decide to do the changes on the flutter app (which I can not do), just drop me a message for the NRF implementation ;)

Because I need this feature, so I will implement soon.

cuonghm90 avatar Jun 13 '24 16:06 cuonghm90

Like I mentioned before, I will not have time for that in the near future. If you would like to add this, I would be happy to look at pull requests

dchristl avatar Jun 17 '24 14:06 dchristl