Tx power field in iBeacon advertising

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
hiren.bhuva
Offline
Last seen:3 years 7 months ago
加入:2017-05-24 12:36
Tx power field in iBeacon advertising

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...".

Device:
STS_Dialog (not verified)
Hi hiren.bhuva,

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.