question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Nordic thingy:52 unable to get RSSI values

See original GitHub issue

Hi, everybody,

I managed, through the Nordic library for Android thingylib (github) , to connect to thingy52 and receive in the callback listener ThingyListener the information about the device (e.g. onGravityVectorChangedEvent, onAccelerometerValueChangedEvent, onGyroscopeValueChangedEvent, and so on…).

What I can’t do (and I can’t find how to do) is how I can get the information about the connection with the device, exactly the RSSI values.

Using the BluetoothLeScannerCompat, inside the onBatchScanResults scan callback, I detect the thingy52 bluetooth device, and their RSSI value, but if I set a high scan frequency, for example .setReportDelay(10), it almost always does not detect devices.

 ScanSettings scanSettings = new ScanSettings.Builder()
                .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)
                .setReportDelay(10) // frequency of scan
                .setUseHardwareBatchingIfSupported(false)
                .build();

My need is to get at a frequency of 10Hz, or 100Hz the RSSI value of the nordic thingy52, which I can’t get from the ThingyListener events.

How can I do it? Thank you in advance.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
philips77commented, Feb 20, 2020

For accurate RSSI values you can’t use setReportDelay. Set it to 0 or remove from the code. First of all, batching works quite ok for delays > 5 seconds. Secondly, the RSSI you get there is an average/last/first/no one knows what. Without report delays you’ll get a onScanResult callback instead. One for each advertisement received.

0reactions
philips77commented, Feb 25, 2020

Please, open an issue in the thingy project for this. Let’s keep things tidy. I’m closing this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

android get RSSI value from nordic thingy:52
My need is to get at a frequency of `10Hz`, or `100Hz` the RSSI value of the nordic thingy52, which I can't get...
Read more >
Unable to retrieve RSSI values from BLE nordic thingy:52
My need is to get at a frequency of 10Hz , or 100Hz the RSSI value of the nordic thingy52, which I can't...
Read more >
Troubleshooting IBM Maximo Safety known issues
Unable to pair the Nordic Thingy:52™. Cannot reconnect Nordic Thingy:52 after it disconnects. The Shift page on my app is showing alternating values...
Read more >
Firmware architecture - Nordic Thingy:52 v2.2.0
Due to the ADC configuration and battery model, certain percentage values are skipped. Will only update/notify if there is a change in remaining...
Read more >
Estimating indoor occupancy through low-cost BLE devices
Furthermore, BLE-based systems have been widely studied. Mateos et al. ... applications, where a certain signature of RSSI values is.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found