Hi Dialog,
I am using iBeacon in my application. How can I get the value that what should i set in tx power byte of iBeacon packet? I am using default tx power for advertisement. which is 0 dbm according to this "https://support.dialog-semiconductor.com/controlling-tx-power-advertisin...".
Keywords:
Device:
Hi hiren.bhuva,
You need to measure the actual the RSSI at 1 meter from advertiser (iBeacon) using your phone (the locate app can help with it), or some instrument.
Then to calculate the into signed format value to put in the tx power filed of the iBeacon follow the steps in the example below.
Let's assume that you measured the RSSI level at -59 dBm and you need to convert that to the proper signed value for the tx power filed of the iBeacon:
1. Write the positive value of the RSSI in binary format: (59)decimal = (0011 1011) binary
2.反向:(00111011) binary => (1100 0100) binary reversed
3. Take 1’s complement: (1100 0100) binary reversed => (1100 0101)1's complement
4. Convert to hexadecimal: (1100 0101)1′s complement = (c5) hex
Best regards,
STS_Dialog.