How can we calculate distance between wiced sense and mobile?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

Can any one help me to calculate distance between wiced sense and Mobile. As per the investigation I did, it is understood that we have to use TxPower and RSSI parameters.  Please let me know, how to get these parameters from the received packet in Mobile App.

Thanks,

0 Likes
1 Solution
Anonymous
Not applicable

Hello sekhar,

Which mobile platform are you needing, Android or iOS?

You might look at How to get RSSI on App?

We don't get the RSSI in our current iOS or Android Apps but we may be able to get an example shortly from our Find-Me iOS App.

From the Firmware side you can get the RSSI in this manner:

Re: How to get RSSI level for all devices being scanned - Discusses RSSI

Also take a look at Proximity App in the SDK 2.2

 

RSSI is valid only when connected when the device is a peripheral. App can use:

 

/// Reads the RSSI info collected for the current connection.

 

/// \return RSSI value in dB. When not connected or not known yet, will return 127.

 

int blecm_ReadRSSI(void);

With 2.2 SDK (20736/20737), in central mode, RSSI is one of the fields in the ADV packet. The same function above can be used to read RSSI when connected.

  

Thanks

JT

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Hello sekhar,

Which mobile platform are you needing, Android or iOS?

You might look at How to get RSSI on App?

We don't get the RSSI in our current iOS or Android Apps but we may be able to get an example shortly from our Find-Me iOS App.

From the Firmware side you can get the RSSI in this manner:

Re: How to get RSSI level for all devices being scanned - Discusses RSSI

Also take a look at Proximity App in the SDK 2.2

 

RSSI is valid only when connected when the device is a peripheral. App can use:

 

/// Reads the RSSI info collected for the current connection.

 

/// \return RSSI value in dB. When not connected or not known yet, will return 127.

 

int blecm_ReadRSSI(void);

With 2.2 SDK (20736/20737), in central mode, RSSI is one of the fields in the ADV packet. The same function above can be used to read RSSI when connected.

  

Thanks

JT

0 Likes
Anonymous
Not applicable

Hi, Mr. JT, I have already known how to get the rssi in android,

But I don't know how to get the current TX Power in android.

In iBeacon, TxPower locates in the device scanning data,

But when I checked it, it doesn't match the ibeacom data format. I used Wiced Sence (BCM20737s).

So,  How can I get the TxPower data in android. Could you help me, thanks a lot.

0 Likes