Skip to content

DW1000_DEVICE_TX_PWR does not match dw1000_dev_cfg power settings #3

@fjmolinas

Description

@fjmolinas

The syscfg for the uwb-dw1000 sets the default TX_POWER for the device to -14.3:

DW1000_DEVICE_TX_PWR:
description: 'Tx Power dBm'
value: ((float)-14.3f)
DW1000_DEVICE_ANT_GAIN:
description: 'Antenna Gain dB'
value: ((float)1.0f)

On the other side the default dw1000_dev_cfg power settings sets a gain of 9dB as the default, but if DW1000_BIAS_CORRECTION_ENABLED is enabled the correction is not based on the configuration settings
in the default config but on the macros DW1000_DEVICE_TX_PWR and DW1000_DEVICE_ANT_GAIN.

.txrf={
.PGdly = TC_PGDELAY_CH5,
//.power = 0x2A4A6A8A,
.BOOSTNORM = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
.BOOSTP500 = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
.BOOSTP250 = dw1000_power_value(DW1000_txrf_config_9db, 2.5),
.BOOSTP125 = dw1000_power_value(DW1000_txrf_config_9db, 2.5)
},

https://github.com/Decawave/uwb-core/blob/c6cf518e39a49f7084b229ee4ed7ab7ee80b2e5d/lib/uwb_rng/src/uwb_rng.c#L1027-L1039

I'm therefore quite unclear on what each of these values mean and what values should be considered for BIAS_CORRECTION

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