Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data #10

Closed
coelner opened this issue Jan 7, 2021 · 4 comments
Closed

No data #10

coelner opened this issue Jan 7, 2021 · 4 comments
Milestone

Comments

@coelner
Copy link

coelner commented Jan 7, 2021

Hey, thanks for your howto to mod the UT61E.

I used a JDY-10 module, which works so far.

Log 2021-01-07 17_07_25.txt.txt

I assume that the UUID is right (the first two zeros are actually there)
ut61E-app-uuid

but the app can't pick up the stream.
ut61e-app

The received binary streams seems to be correct. Currently I can't verify it with ble-serial. Neither ble-scan nor the direct connection with ble-serial works so far.

@Jakeler
Copy link
Owner

Jakeler commented Jan 8, 2021

The UUID looks correct, but I don't know why this module exposes two characteristics. Is there a datasheet that explains this?

Can you post a logcat as well?
You can filter for this app by running: adb logcat --pid=$(adb shell pidof -s jk.ut61eTool)

@coelner
Copy link
Author

coelner commented Jan 8, 2021

[07:20|coelner@localhost ~]$ adb logcat --pid=$(adb shell pidof -s jk.ut61eTool)
* daemon not running; starting now at tcp:5037
* daemon started successfully
--------- beginning of main
01-08 07:19:18.037 13247 13247 E jk.ut61eTool: Not starting debugger since process cannot load the jdwp agent.
01-08 07:19:18.113 13247 13247 I jk.ut61eTool: The ClassLoaderContext is a special shared library.
01-08 07:19:18.210 13247 13247 D OpenGLRenderer: Skia GL Pipeline
01-08 07:19:18.294 13247 13267 I Adreno  : QUALCOMM build                   : 12b5963, I6fd668c4d3
01-08 07:19:18.294 13247 13267 I Adreno  : Build Date                       : 10/04/18
01-08 07:19:18.294 13247 13267 I Adreno  : OpenGL ES Shader Compiler Version: EV031.25.03.01
01-08 07:19:18.294 13247 13267 I Adreno  : Local Branch                     : 
01-08 07:19:18.294 13247 13267 I Adreno  : Remote Branch                    : refs/tags/AU_LINUX_ANDROID_LA.UM.7.2.R1.09.00.00.442.049
01-08 07:19:18.294 13247 13267 I Adreno  : Remote Branch                    : NONE
01-08 07:19:18.294 13247 13267 I Adreno  : Reconstruct Branch               : NOTHING
01-08 07:19:18.294 13247 13267 I Adreno  : Build Config                     : S L 6.0.7 AArch64
01-08 07:19:18.295 13247 13267 D vndksupport: Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
01-08 07:19:18.307 13247 13267 I Adreno  : PFP: 0x005ff112, ME: 0x005ff066
01-08 07:19:18.313 13247 13267 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0
01-08 07:19:18.313 13247 13267 I ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
01-08 07:19:18.314 13247 13267 I OpenGLRenderer: Initialized EGL, version 1.4
01-08 07:19:18.314 13247 13267 D OpenGLRenderer: Swap behavior 2
01-08 07:19:18.329 13247 13267 D vndksupport: Loading /vendor/lib64/hw/android.hardware.graphics.mapper@2.0-impl.so from current namespace instead of sphal namespace.
01-08 07:19:18.330 13247 13267 D vndksupport: Loading /vendor/lib64/hw/gralloc.sdm660.so from current namespace instead of sphal namespace.
01-08 07:20:44.980 13247 13247 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@947f6c1
01-08 07:20:44.995 13247 13247 D TAG     : onCreate: /storage/emulated/0/Android/data/jk.ut61eTool/cache
01-08 07:20:45.017 13247 13247 D BluetoothAdapter: startLeScan(): null
01-08 07:20:45.020 13247 13247 D BluetoothAdapter: isLeEnabled(): ON
01-08 07:20:45.024 13247 13268 D BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=9 mScannerId=0
01-08 07:20:55.024 13247 13247 D BluetoothAdapter: stopLeScan()
01-08 07:20:55.027 13247 13247 D BluetoothAdapter: isLeEnabled(): ON
01-08 07:21:07.716 13247 13247 D BluetoothAdapter: startLeScan(): null
01-08 07:21:07.719 13247 13247 D BluetoothAdapter: isLeEnabled(): ON
01-08 07:21:07.723 13247 13259 D BluetoothLeScanner: onScannerRegistered() - status=0 scannerId=9 mScannerId=0
01-08 07:21:11.228 13247 13247 D BluetoothAdapter: stopLeScan()
01-08 07:21:11.230 13247 13247 D BluetoothAdapter: isLeEnabled(): ON
01-08 07:21:11.251 13247 13247 D BluetoothAdapter: stopLeScan()
01-08 07:21:11.252 13247 13247 D BluetoothAdapter: scan not started yet
01-08 07:21:11.263 13247 13247 W ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@9e79429
01-08 07:21:11.483 13247 13247 I AssistStructure: Flattened final assist data: 5052 bytes, containing 1 windows, 18 views
01-08 07:21:11.485 13247 13247 D BluetoothGatt: connect() - device: A4:C1:38:02:B9:DD, auto: false
01-08 07:21:11.485 13247 13247 D BluetoothGatt: registerApp()
01-08 07:21:11.485 13247 13247 D BluetoothGatt: registerApp() - UUID=b6383e49-0dd8-4c1d-943d-df02a70f07e7
01-08 07:21:11.488 13247 13247 D BluetoothLeService: Trying to create a new connection.
01-08 07:21:11.488 13247 13259 D BluetoothGatt: onClientRegistered() - status=0 clientIf=9
01-08 07:21:11.888 13247 13259 D BluetoothGatt: onClientConnectionState() - status=0 clientIf=9 device=A4:C1:38:02:B9:DD
01-08 07:21:11.890 13247 13259 I BluetoothLeService: Connected to GATT server.
01-08 07:21:11.890 13247 13259 D BluetoothGatt: discoverServices() - device: A4:C1:38:02:B9:DD
01-08 07:21:11.894 13247 13259 I BluetoothLeService: Attempting to start service discovery:true
01-08 07:21:12.336 13247 13259 D BluetoothGatt: onConnectionUpdated() - Device=A4:C1:38:02:B9:DD interval=6 latency=0 timeout=500 status=0
01-08 07:21:12.425 13247 13259 D BluetoothGatt: onSearchComplete() = Device=A4:C1:38:02:B9:DD Status=0
01-08 07:21:12.427 13247 13247 D BluetoothGatt: setCharacteristicNotification() - uuid: 0000ffe1-0000-1000-8000-00805f9b34fb enable: true
01-08 07:21:12.515 13247 13268 D BluetoothGatt: onConnectionUpdated() - Device=A4:C1:38:02:B9:DD interval=36 latency=0 timeout=500 status=0
01-08 07:21:13.246 13247 13268 D BluetoothGatt: onConnectionUpdated() - Device=A4:C1:38:02:B9:DD interval=21 latency=0 timeout=600 status=0
01-08 07:21:17.716 13247 13247 D BluetoothAdapter: stopLeScan()
01-08 07:21:17.720 13247 13247 D BluetoothAdapter: scan not started yet
01-08 07:24:53.389 13247 13247 D BluetoothLeService: Trying to use an existing mBluetoothGatt for connection.
01-08 07:24:53.396 13247 13247 D LogActivity: Connect request result=true
01-08 07:25:25.813 13247 13259 D BluetoothGatt: onClientConnectionState() - status=8 clientIf=9 device=A4:C1:38:02:B9:DD
01-08 07:25:25.814 13247 13259 I BluetoothLeService: Disconnected from GATT server.
01-08 07:25:43.483 13247 13247 D BluetoothGatt: cancelOpen() - device: A4:C1:38:02:B9:DD
01-08 07:25:55.057 13247 13247 D BluetoothLeService: Trying to use an existing mBluetoothGatt for connection.
01-08 07:25:56.124 13247 13259 D BluetoothGatt: onClientConnectionState() - status=0 clientIf=9 device=A4:C1:38:02:B9:DD
01-08 07:25:56.130 13247 13259 I BluetoothLeService: Connected to GATT server.
01-08 07:25:56.130 13247 13259 D BluetoothGatt: discoverServices() - device: A4:C1:38:02:B9:DD
01-08 07:25:56.133 13247 13259 I BluetoothLeService: Attempting to start service discovery:true
01-08 07:25:56.556 13247 13259 D BluetoothGatt: onConnectionUpdated() - Device=A4:C1:38:02:B9:DD interval=6 latency=0 timeout=500 status=0
01-08 07:25:56.748 13247 13259 D BluetoothGatt: onSearchComplete() = Device=A4:C1:38:02:B9:DD Status=0
01-08 07:25:56.754 13247 13247 D BluetoothGatt: setCharacteristicNotification() - uuid: 0000ffe1-0000-1000-8000-00805f9b34fb enable: true
01-08 07:25:56.829 13247 13268 D BluetoothGatt: onConnectionUpdated() - Device=A4:C1:38:02:B9:DD interval=21 latency=0 timeout=600 status=0
^C
  • 01-08 07:25:25.814: I switched the UT61E off, the app did not changed the "connected" state
  • 01-08 07:25:43.483: I clicked the "disconnect" button
  • 01-08 07:25:55.057: I clicked the "connect" button

Jakeler added a commit that referenced this issue Jan 16, 2021
@Jakeler
Copy link
Owner

Jakeler commented Jan 16, 2021

Looks like it is not receiving any notifications. I assume this is because your module needs explicit enabling of notifications.
Possible reason: https://stackoverflow.com/questions/22817005/why-does-setcharacteristicnotification-not-actually-enable-notifications

I have added setup code that should fix this, please try this build: Application-release.zip
You have to rename the .zip to .apk again (GitHub does not allow the upload otherwise here) and you might have to uninstall the Play Store version first, if the installation does not work.

@coelner
Copy link
Author

coelner commented Jan 18, 2021

Thanks a lot, working like a charm

@coelner coelner closed this as completed Jan 18, 2021
@Jakeler Jakeler added this to the 1.3 milestone Jan 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants