Tinyscreen App on Adroid 6.01 wont sync time and Notifications

Satcamel · 11 · 17007

Satcamel

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
I had the problem that the Tinyscreen App wont work propper on Android 6.0.1
I will make the connection but don´t sync time nor getting notifications.
I think that the app don´t send data to the Watch.
If i debug the App in Androidstudio i can see that the Connection is made but nothing more :-(
If i use nRF Uart i can send the Time with D followed by YYYY MM DD HH MM SS.
Also i can send Notification with 1 followed from the Text.
Is there any help out the?
Im a noob in Programming.
Thanks for help and greetings from Germany, Dirk

PS: The log from Studio

02/11 16:16:49: Launching app
$ adb push /Users/Dirk/Downloads/TinyCircuits-TinyScreen-Android-App-master/app/build/outputs/apk/app-debug.apk /data/local/tmp/com.tinycircuits.tinycircuitsble
$ adb shell pm install -r "/data/local/tmp/com.tinycircuits.tinycircuitsble"
   pkg: /data/local/tmp/com.tinycircuits.tinycircuitsble
Success


$ adb shell am start -n "com.tinycircuits.tinycircuitsble/com.tinycircuits.tinycircuitsble.ScanActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Connecting to com.tinycircuits.tinycircuitsble
Connected to the target VM, address: 'localhost:8601', transport: 'socket'
E/Zygote: v2
W/SELinux: Function: selinux_compare_spd_ram, index[1], priority [2], priority version is VE=SEPF_SECMOBILE_6.0.1_0011
E/Zygote: accessInfo : 0
I/libpersona: KNOX_SDCARD checking this for 10232
I/libpersona: KNOX_SDCARD not a persona
W/SELinux: SELinux: seapp_context_lookup: seinfo=default, level=s0:c512,c768, pkgname=com.tinycircuits.tinycircuitsble
I/art: Late-enabling -Xcheck:jni
D/TimaKeyStoreProvider: TimaSignature is unavailable
D/ActivityThread: Added TimaKeyStore provider
I/System.out: Sending WAIT chunk
D/ResourcesManager: For user 0 new overlays fetched Null
W/ActivityThread: Application com.tinycircuits.tinycircuitsble is waiting for the debugger on port 8100...
I/art: Debugger is active
I/System.out: Debugger has connected
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: waiting for debugger to settle...
I/System.out: debugger has settled (1384)
W/System: ClassLoader referenced unknown path: /data/app/com.tinycircuits.tinycircuitsble-2/lib/arm
I/InstantRun: Instant Run Runtime started. Android package is com.tinycircuits.tinycircuitsble, real application class is null.
W/System: ClassLoader referenced unknown path: /data/app/com.tinycircuits.tinycircuitsble-2/lib/arm
D/AbsListView: Get MotionRecognitionManager
E/MotionRecognitionManager: mSContextService = android.hardware.scontext.ISContextService$Stub$Proxy@5dbcaf5
E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@b6b2171
E/MotionRecognitionManager: motionService = com.samsung.android.motion.IMotionRecognitionService$Stub$Proxy@b6b2171
D/BluetoothManager: getConnectedDevices
D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{e8615bf I.E...... R.....ID 0,0-0,0}
D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
D/libEGL: loaded /vendor/lib/egl/libGLES_mali.so
D/libEGL: eglInitialize EGLDisplay = 0xf360a7c4
I/OpenGLRenderer: Initialized EGL, version 1.4
D/mali_winsys: new_window_surface returns 0x3000,  [1080x1920]-format:1
D/libGLESv1: DTS_GLAPI : DTS is not allowed for Package : com.tinycircuits.tinycircuitsble
D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@a1f248 time:66965905
D/ViewRootImpl: ViewPostImeInputStage processPointer 0
D/ViewRootImpl: ViewPostImeInputStage processPointer 1
D/BluetoothAdapter: startLeScan(): null
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothLeScanner: Start Scan
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=5
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ScanRecord: parseFromBytes
D/ViewRootImpl: ViewPostImeInputStage processPointer 0
D/ViewRootImpl: ViewPostImeInputStage processPointer 1
D/ScanRecord: parseFromBytes
D/BluetoothAdapter: stopLeScan()
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothLeScanner: Stop Scan
I/Timeline: Timeline: Activity_launch_request id:com.tinycircuits.tinycircuitsble time:66972470
D/BluetoothAdapter: stopLeScan()
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: scan not started yet
D/ViewRootImpl: #1 mView = com.android.internal.policy.PhoneWindow$DecorView{29ef249 I.E...... R.....ID 0,0-0,0}
D/mali_winsys: new_window_surface returns 0x3000,  [1080x1920]-format:1
D/ViewRootImpl: MSG_RESIZED_REPORT: ci=Rect(0, 72 - 0, 0) vi=Rect(0, 72 - 0, 0) or=1
D/BluetoothGatt: connect() - device: D3:02:A5:03:DF:6F, auto: false
D/BluetoothGatt: registerApp()
D/BluetoothGatt: registerApp() - UUID=cb226b90-1307-47eb-aa47-bfa87685dfc1
D/BluetoothGatt: onClientRegistered() - status=0 clientIf=5
D/===========: Trying to create a new connection.
I/Timeline: Timeline: Activity_idle id: android.os.BinderProxy@abd7613 time:66972754
V/ActivityThread: updateVisibility : ActivityRecord{18926b0 token=android.os.BinderProxy@a1f248 {com.tinycircuits.tinycircuitsble/com.tinycircuits.tinycircuitsble.ScanActivity}} show : false
D/BluetoothGatt: onClientConnectionState() - status=0 clientIf=5 device=D3:02:A5:03:DF:6F
D/===========: Connected to GATT server.
D/BluetoothGatt: discoverServices() - device: D3:02:A5:03:DF:6F
D/===========: gatt connected event
D/===========: Attempting to start service discovery:true
D/BluetoothGatt: onClientConnParamsChanged() - Device=D3:02:A5:03:DF:6F interval=6 status=0
D/BluetoothAdapter: stopLeScan()
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: STATE_ON
D/BluetoothAdapter: scan not started yet
D/BluetoothGatt: onSearchComplete() = Device=D3:02:A5:03:DF:6F Status=0
D/BluetoothGatt: onClientConnParamsChanged() - Device=D3:02:A5:03:DF:6F interval=39 status=0
D/ViewRootImpl: ViewPostImeInputStage processPointer 0
D/ViewRootImpl: ViewPostImeInputStage processPointer 1
« Last Edit: February 11, 2017, 10:19:53 AM by Satcamel »


Ben Rose

  • Administrator
  • Hero Member
  • *****
    • Posts: 392
    • View Profile
Hi Dirk, thanks for the testing and debug output, that should speed things up. I have a 6.0.1 phone and things are currently working on it. Do you get a debug output when you hit the 'sync time' button with the actual data that is sent/trying to send through the BLE link? I am not sure if that is turned on in the app, but it should be, and that may show what is happening.

Thanks,
Ben


Satcamel

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
Hi Ben,
Sync Time Button in your app? never seen :-/
The log comes when i hit connect button.
And when "D/ViewRootImpl: ViewPostImeInputStage processPointer 0
D/ViewRootImpl: ViewPostImeInputStage processPointer 1" is shown in the log i tapped on the screen.

greeting Dirk



lfreed

  • Administrator
  • Full Member
  • *****
    • Posts: 15
  • An intern working with TinyCircuits.
    • View Profile
Hi Dirk,

Sorry for the delayed response. I'm an employee at TinyCircuits - Ben and I were working on solving your issue yesterday. If you check the Github repository for the Android app, it should have a new APK with the 'Sync Time' button that you're missing! Please let us know after you install the APK if you are still having issues. Thanks!

Repository: https://github.com/TinyCircuits/TinyCircuits-TinyScreen-Android-App


Satcamel

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
Ok, thanks for your work.
Time does now work but notifications dont work


Satcamel

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
Ok i found it, Notifications now work. I had to use the real Application Name in German ;-)


beermat

  • Jr. Member
  • **
    • Posts: 9
    • View Profile
I tried the new APK (dated 3/7/2017) but still don't see a 'Sync Time' button on my Samsung S6 running Android 6.0.1? I have the same issue as OP - Bluetooth connection is made according to both apps, but time doesn't sync. On the Android app, I see controls for 'Device Control' and 'Connect/Disconnect', a report of Device Name, Device Mac Address and Status. Under Device Control, I see 'Scan' and a menu with one item, 'Notification Settings'.


Satcamel

  • Jr. Member
  • **
    • Posts: 8
    • View Profile
You had to compile it at your own, the app in the folder of the source is the old one


beermat

  • Jr. Member
  • **
    • Posts: 9
    • View Profile
Ahh, thanks. Built, deployed, have button, time syncs. Great! In the above post, when I saw "it should have a new APK", I just assumed the APK included in the repo was the new one.


lfreed

  • Administrator
  • Full Member
  • *****
    • Posts: 15
  • An intern working with TinyCircuits.
    • View Profile
I'll rebuild the app-debug apk so that won't be an issue in the future. Sorry for any confusion that caused! Didn't realize the folder didn't have the new apk.


 

SMF spam blocked by CleanTalk