HBandSDK/Android_Ble_SDK

Cannot get ECG results when measuring stopped

sc0ttie opened this issue · 0 comments

Describe the bug
I use this SDK with V3E band. I want to trigger onEcgDetectResultChange() to get complete ECG results when measuring stopped. However, the SDK gives me NullPointerException before the callback invoked.

Besides, I test the demo app with version 2.1.26.15 but another error occurred...

To Reproduce
Steps to reproduce the behavior:

  1. start ECG measuring
  2. stop ECG measuring
  3. see error logs below

Expected behavior
The onEcgDetectResultChange() should be invoked when ECG measuring stopped.

Smartphone

  • Device: Asus Zenfone 5
  • OS: Android
  • Version: 19

SDK Version

  • Version: 2.1.24.15

Additional context

03-26 10:28:49.434 23418-23418/com.timaimee.vpdemo I/veepoo-bluetooth: onNotify,operate=ecg_data_app_detect_oprate,value=93,01,01,01,00,00,00,FF,00,00,00,00,01,02,00,00,00,00,00,05,
03-26 10:28:49.444 23418-23418/com.timaimee.vpdemo E/veepoo-bluetooth: java.lang.reflect.InvocationTargetException
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.inuker.bluetooth.library.utils.proxy.ProxyBulk.safeInvoke(ProxyBulk.java:26)
        at com.inuker.bluetooth.library.utils.proxy.ProxyBulk.safeInvoke(ProxyBulk.java:34)
        at com.inuker.bluetooth.library.utils.proxy.ProxyInvocationHandler.handleMessage(ProxyInvocationHandler.java:102)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:149)
        at android.app.ActivityThread.main(ActivityThread.java:5257)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
        at dalvik.system.NativeStart.main(Native Method)
     Caused by: java.lang.NullPointerException
        at com.veepoo.protocol.b.s.C(Unknown Source)
        at com.veepoo.protocol.VPOperateManager.a(Unknown Source)
        at com.veepoo.protocol.VPOperateManager.a(Unknown Source)
        at com.veepoo.protocol.VPOperateManager$1.onNotify(Unknown Source)
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:515) 
        at com.inuker.bluetooth.library.utils.proxy.ProxyBulk.safeInvoke(ProxyBulk.java:26) 
        at com.inuker.bluetooth.library.utils.proxy.ProxyBulk.safeInvoke(ProxyBulk.java:34) 
        at com.inuker.bluetooth.library.utils.proxy.ProxyInvocationHandler.handleMessage(ProxyInvocationHandler.java:102) 
        at android.os.Handler.dispatchMessage(Handler.java:98) 
        at android.os.Looper.loop(Looper.java:149) 
        at android.app.ActivityThread.main(ActivityThread.java:5257) 
        at java.lang.reflect.Method.invokeNative(Native Method) 
        at java.lang.reflect.Method.invoke(Method.java:515) 
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793) 
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609) 
        at dalvik.system.NativeStart.main(Native Method) 
    java.lang.NullPointerException
        at com.veepoo.protocol.b.s.C(Unknown Source)
        at com.veepoo.protocol.VPOperateManager.a(Unknown Source)
        at com.veepoo.protocol.VPOperateManager.a(Unknown Source)
        at com.veepoo.protocol.VPOperateManager$1.onNotify(Unknown Source)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.inuker.bluetooth.library.utils.proxy.ProxyBulk.safeInvoke(ProxyBulk.java:26)
        at com.inuker.bluetooth.library.utils.proxy.ProxyBulk.safeInvoke(ProxyBulk.java:34)
        at com.inuker.bluetooth.library.utils.proxy.ProxyInvocationHandler.handleMessage(ProxyInvocationHandler.java:102)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:149)
        at android.app.ActivityThread.main(ActivityThread.java:5257)
        at java.lang.reflect.Method.invokeNative(Native Method)
        at java.lang.reflect.Method.invoke(Method.java:515)
        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:609)
        at dalvik.system.NativeStart.main(Native Method)