Skip to content

LR1110 gnss power consumption convertion #357

@Hamzasaadi84

Description

@Hamzasaadi84

https://github.com/Lora-net/SWSD003/blob/5cf9794ea62edd092025ea437353db820df6c796/lr11xx/lr11xx_driver/src/lr11xx_gnss.c#L1037C48-L1037C101

I contact you to report a concern about a formula used in the LR1110 driver to calculate the power consumption.
In the file lr11xx_driver/src/lr11xx_gnss.c
In the function : lr11xx_gnss_compute_power_consumption()
At the end you convert the consumption from nAs to µAh using the formula below:
power_consumption_uah_tmp = ( ( e_init + e_tot_gps + e_tot_beidou + e_demod ) * 1000 ) /
( 3600.0 - ( ( float ) cumulative_timing->total / 32768.0 ) );
My concern is about the subtraction of ( cumulative_timing->total ).

The formula should be: power_consumption_uah_tmp = ( ( e_init + e_tot_gps + e_tot_beidou + e_demod ) * 1000 ) / 3600.0 );

Is there any reason you do the subtraction of the computation and radio timing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions