NordicID/nur_sdk

Java SDK BluetoothGatt very chatty same line every 3 seconds

challgren opened this issue · 7 comments

Using the Java/Android SDK the "BluetoothGatt" is extremely chatty with readRssi() - device: 00:21:AD:13:12:6E every 3 seconds when connected to a device

In my application in the event of an exception the last 100 lines of the logcat output are sent along with the event crash. However because BluetoothGatt is extremely chatty being able to debug my crashes is extremely difficult is there anyway suppress/silence this unnecessary Log.d messages?

2019-04-30 19:36:46.868 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:36:49.873 11460-11460/com.truepedigree.newportreader I/chatty: uid=10153(u0_a153) com.truepedigree.newportreader identical 1 line
2019-04-30 19:36:52.880 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:36:54.516 11460-11460/com.truepedigree.newportreader I/BleScanner: onScanFinished() mScanning true; mListeners 0
2019-04-30 19:36:54.521 11460-11460/com.truepedigree.newportreader D/BluetoothAdapter: isLeEnabled(): ON
2019-04-30 19:36:55.888 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:36:58.901 11460-11460/com.truepedigree.newportreader I/chatty: uid=10153(u0_a153) com.truepedigree.newportreader identical 1 line
2019-04-30 19:37:01.910 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:04.919 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:13.958 11460-11460/com.truepedigree.newportreader I/chatty: uid=10153(u0_a153) com.truepedigree.newportreader identical 3 lines
2019-04-30 19:37:16.967 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:19.978 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:29.013 11460-11460/com.truepedigree.newportreader I/chatty: uid=10153(u0_a153) com.truepedigree.newportreader identical 3 lines
2019-04-30 19:37:32.023 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:35.037 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:44.070 11460-11460/com.truepedigree.newportreader I/chatty: uid=10153(u0_a153) com.truepedigree.newportreader identical 3 lines
2019-04-30 19:37:47.080 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:50.095 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:53.109 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:56.119 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E
2019-04-30 19:37:59.129 11460-11460/com.truepedigree.newportreader D/BluetoothGatt: readRssi() - device: 00:21:AD:13:12:6E

You'll just need to use logcat filter to include only those message you want to see. Set your own "TAG" for Log.x function in your app and you can see your log messages in logcat.
In case of crash, use filter "FATAL" and you'll see exception causing crash.

ok, yes, you're right. It's unnecessary. Will be removed..

it looks like that BluetoothGatt: readRssi() debug line is not produced by Nordic ID libraries..

Is it smart pair maybe? I'll see if I can track the source. I assumed it was nurapi