mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12NextPage
backToList newPost
view: 4187|reply: 11
打印 prevThread nextThread

libBVP2P.so

[copyURL]

5

主题

22

帖子

81

积分

member

Rank: 2

积分
81
jumpTo
owner
poston 2019-6-27 10:57 | authorOnly 回帖奖励 |倒序浏览 |阅读模式
libBVP2P.so对应的Java层代码应该如何调用so库中的native层代码?有例子吗?
reply

使用道具 report

13

主题

373

帖子

2037

积分

vipMem

Rank: 6Rank: 6

积分
2037
sofa
poston 2019-6-27 11:21 | authorOnly
哦,昨天提供给您的是BVCSP SDK库,那个是纯协议部分的,纯C接口,那个太过底层,并不适合您这边开发。
我们今天给刘总提供了MCP的SDK库,包含了协议和数据(JAVA)接口,这个更上层一些,适合你们,里面有文档和DEMO。

本帖子中包含更多资源

pls login 才可以下载或查看,没有帐号?registerNow

x
reply agree Against

使用道具 report

5

主题

22

帖子

81

积分

member

Rank: 2

积分
81
bench
 Owner| poston 2019-7-31 10:56 | authorOnly
你好,我们使用MCP的SDK库进行开发。
目前授权部分通过了。
在尝试进行登录的时候,报错了signal 11 (SIGSEGV)。
请问这个要如何排查?

logcat输出的信息如下:

  1. 2019-07-31 10:44:25.829 2150-2192/com.zbk.mcu E/bvauth: [D] [07-31 10:44:25] [push:1049] auth randcode: 427953
  2. 2019-07-31 10:44:25.829 2150-2150/com.zbk.mcu E/bvauth: auth call success!
  3. 2019-07-31 10:44:25.830 2150-2150/com.zbk.mcu E/bvauth: ***************>> request: 2
  4. 2019-07-31 10:44:25.832 2150-2192/com.zbk.mcu E/bvauth: [D] [07-31 10:44:25] [connect:0217] connect 47.107.87.21 : 18866 ...
  5. 2019-07-31 10:44:25.833 2150-2192/com.zbk.mcu E/bvauth: [D] [07-31 10:44:25] [callback_auth:0123] create  LWS_CALLBACK_WSI_CREATE
  6. 2019-07-31 10:44:25.833 2150-2192/com.zbk.mcu E/bvauth: [D] [07-31 10:44:25] [callback_auth:0126] destroy  LWS_CALLBACK_WSI_DESTROY
  7. 2019-07-31 10:44:25.834 2150-2192/com.zbk.mcu E/bvauth: [D] [07-31 10:44:25] [wsOnClosed:0387]
  8. 2019-07-31 10:44:25.834 2150-2192/com.zbk.mcu E/bvauth: [D] [07-31 10:44:25] [wsDestory:0393] wsDestory
  9. 2019-07-31 10:44:25.834 2150-2192/com.zbk.mcu E/bvauth: [E] [07-31 10:44:25] [connect:0222] connect fail
  10. 2019-07-31 10:44:25.842 2150-2150/com.zbk.mcu V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = null, this = DecorView@57eccb[]
  11. 2019-07-31 10:44:25.848 2150-2150/com.zbk.mcu D/WindowClient: Add to mViews: DecorView@57eccb[MainActivity], this = android.view.WindowManagerGlobal@3dca8d9
  12. 2019-07-31 10:44:25.849 2150-2150/com.zbk.mcu D/OpenGLRenderer: Dumper init 4 threads <0xe20cfea0>
  13. 2019-07-31 10:44:25.850 2150-2150/com.zbk.mcu D/OpenGLRenderer: <com.zbk.mcu> is running.
  14. 2019-07-31 10:44:25.855 2150-2196/com.zbk.mcu D/OpenGLRenderer: CanvasContext() 0xe5f76000
  15. 2019-07-31 10:44:25.855 2150-2172/com.zbk.mcu W/VideoCapabilities: Unrecognized profile/level 1/32 for video/mp4v-es
  16. 2019-07-31 10:44:25.855 2150-2172/com.zbk.mcu W/VideoCapabilities: Unrecognized profile/level 32768/2 for video/mp4v-es
  17. 2019-07-31 10:44:25.855 2150-2172/com.zbk.mcu W/VideoCapabilities: Unrecognized profile/level 32768/64 for video/mp4v-es
  18. 2019-07-31 10:44:25.858 2150-2150/com.zbk.mcu D/ViewRootImpl[MainActivity]: hardware acceleration is enabled, this = ViewRoot{13c329e com.zbk.mcu/com.zbk.mcu.MainActivity,ident = 0}
  19. 2019-07-31 10:44:25.862 2150-2150/com.zbk.mcu V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{13c329e com.zbk.mcu/com.zbk.mcu.MainActivity,ident = 0}, this = DecorView@57eccb[MainActivity]
  20. 2019-07-31 10:44:25.869 2150-2172/com.zbk.mcu W/VideoCapabilities: Unsupported mime video/x-ms-wmv
  21. 2019-07-31 10:44:25.871 2150-2172/com.zbk.mcu W/VideoCapabilities: Unsupported mime video/divx
  22. 2019-07-31 10:44:25.874 2150-2172/com.zbk.mcu W/VideoCapabilities: Unsupported mime video/divx3
  23. 2019-07-31 10:44:25.876 2150-2172/com.zbk.mcu W/VideoCapabilities: Unsupported mime video/xvid
  24. 2019-07-31 10:44:25.879 2150-2172/com.zbk.mcu W/VideoCapabilities: Unsupported mime video/flv1
  25. 2019-07-31 10:44:25.881 2150-2172/com.zbk.mcu W/VideoCapabilities: Unrecognized profile/level 1/32 for video/mp4v-es
  26. 2019-07-31 10:44:25.898 2150-2150/com.zbk.mcu D/Surface: Surface::allocateBuffers(this=0xd0821000)
  27. 2019-07-31 10:44:25.898 2150-2196/com.zbk.mcu D/OpenGLRenderer: CanvasContext() 0xe5f76000 initialize window=0xd0821000, title=com.zbk.mcu/com.zbk.mcu.MainActivity
  28. 2019-07-31 10:44:25.898 2150-2196/com.zbk.mcu I/OpenGLRenderer: Initialized EGL, version 1.4
  29. 2019-07-31 10:44:25.898 2150-2196/com.zbk.mcu D/OpenGLRenderer: Swap behavior 1
  30. 2019-07-31 10:44:25.901 2150-2196/com.zbk.mcu D/OpenGLRenderer: Created EGL context (0xe20d0c00)
  31. 2019-07-31 10:44:25.902 2150-2196/com.zbk.mcu D/OpenGLRenderer: ProgramCache.init: enable enhancement 1
  32. 2019-07-31 10:44:25.903 2150-2196/com.zbk.mcu I/OpenGLRenderer: Get disable program binary service property (0)
  33. 2019-07-31 10:44:25.903 2150-2196/com.zbk.mcu I/OpenGLRenderer: Initializing program atlas...
  34. 2019-07-31 10:44:25.903 2150-2196/com.zbk.mcu I/ProgramBinary/Service: ProgramBinaryService client side disable debugging.
  35. 2019-07-31 10:44:25.903 2150-2196/com.zbk.mcu I/ProgramBinary/Service: ProgramBinaryService client side disable binary content debugging.
  36. 2019-07-31 10:44:25.903 2150-2196/com.zbk.mcu D/ProgramBinary/Service: BpProgramBinaryService.getReady
  37. 2019-07-31 10:44:25.904 2150-2196/com.zbk.mcu D/ProgramBinary/Service: BpProgramBinaryService.getProgramBinaryData
  38. 2019-07-31 10:44:25.904 2150-2196/com.zbk.mcu I/OpenGLRenderer: Program binary detail: Binary length is 249276, program map length is 124.
  39. 2019-07-31 10:44:25.904 2150-2196/com.zbk.mcu I/OpenGLRenderer: Succeeded to mmap program binaries. File descriptor is 80, and path is /dev/ashmem.
  40. 2019-07-31 10:44:25.905 2150-2196/com.zbk.mcu I/OpenGLRenderer: No need to use file discriptor anymore, close fd(80).
  41. 2019-07-31 10:44:25.905 2150-2196/com.zbk.mcu D/OpenGLRenderer: Initializing program cache from 0x0, size = -1
  42. 2019-07-31 10:44:25.905 2150-2196/com.zbk.mcu D/Surface: Surface::connect(this=0xd0821000,api=1)
  43. 2019-07-31 10:44:25.906 2150-2196/com.zbk.mcu W/libEGL: [ANDROID_RECORDABLE] format: 1
  44. 2019-07-31 10:44:25.908 2150-2196/com.zbk.mcu D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
  45. 2019-07-31 10:44:25.928 2150-2172/com.zbk.mcu I/VideoCapabilities: Unsupported profile 4 for video/mp4v-es
  46. 2019-07-31 10:44:25.934 2150-2172/com.zbk.mcu I/CoreSDK: ----------------->PostMessageToNative LOGIN
  47. 2019-07-31 10:44:25.934 2150-2172/com.zbk.mcu I/CoreSDK: ----------------->S_ID -> LOGIN
  48. 2019-07-31 10:44:25.934 2150-2172/com.zbk.mcu I/CoreSDK: ----------------->I_RESULT -> 0
  49. 2019-07-31 10:44:25.934 2150-2172/com.zbk.mcu I/CoreSDK: <-----------------PostMessageToNative
  50. 2019-07-31 10:44:25.937 2150-2150/com.zbk.mcu W/art: Before Android 4.1, method int android.support.v7.widget.DropDownListView.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
  51. 2019-07-31 10:44:25.939 2150-2171/com.zbk.mcu I/CUGlobal: pMsg->iAction = 0
  52. 2019-07-31 10:44:25.939 2150-2171/com.zbk.mcu I/CUGlobal: File:jni-r19c/../jni/CUGlobal.cpp,Func = handleThreadMsg, begin
  53. 2019-07-31 10:44:25.939 2150-2171/com.zbk.mcu I/CUGlobal: UA
  54. 2019-07-31 10:44:25.939 2150-2171/com.zbk.mcu I/CUGlobal: file = jni-r19c/../jni/CUGlobal.cpp, debug line = 545
  55.    
  56.     --------- beginning of crash
  57. 2019-07-31 10:44:25.941 2150-2192/com.zbk.mcu A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2192 (Thread-13)
  58. 2019-07-31 10:44:25.944 2150-2150/com.zbk.mcu V/InputMethodManager: onWindowFocus: null softInputMode=288 first=true flags=#81810100
copycode


reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
ground
poston 2019-7-31 11:04 | authorOnly
konka post on2019-7-31 10:56
你好,我们使用MCP的SDK库进行开发。
目前授权部分通过了。
在尝试进行登录的时候,报错了signal 11 (SIG ...

日志不完整。需要给出具体的C层崩溃的调用栈
reply agree Against

使用道具 report

5

主题

22

帖子

81

积分

member

Rank: 2

积分
81
5#
 Owner| poston 2019-7-31 11:19 | authorOnly
你好,请查看。

  1. 2019-07-31 11:17:01.650 967-1083/? I/ActivityManager: Displayed com.zbk.mcu/.MainActivity: +466ms
  2. 2019-07-31 11:17:01.650 2358-2377/? I/CoreSDK: ----------------->PostMessageToNative LOGIN
  3. 2019-07-31 11:17:01.650 2358-2377/? I/CoreSDK: ----------------->S_ID -> LOGIN
  4. 2019-07-31 11:17:01.650 2358-2377/? I/CoreSDK: ----------------->I_RESULT -> 0
  5. 2019-07-31 11:17:01.650 2358-2377/? I/CoreSDK: <-----------------PostMessageToNative
  6. 2019-07-31 11:17:01.653 967-1083/? D/WindowClient: Remove from mViews: android.view.View{a9f5cab V.ED..... ......ID 0,0-1080,1920}, this = android.view.WindowManagerGlobal@2f5ab84
  7. 2019-07-31 11:17:01.654 2358-2376/? I/CUGlobal: pMsg->iAction = 0
  8. 2019-07-31 11:17:01.654 2358-2376/? I/CUGlobal: File:jni-r19c/../jni/CUGlobal.cpp,Func = handleThreadMsg, begin
  9. 2019-07-31 11:17:01.654 2358-2376/? I/CUGlobal: UA
  10. 2019-07-31 11:17:01.654 2358-2376/? I/CUGlobal: file = jni-r19c/../jni/CUGlobal.cpp, debug line = 545
  11. 2019-07-31 11:17:01.656 2358-2417/? A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 2417 (Thread-5)
  12. 2019-07-31 11:17:01.657 1070-1070/? D/AEE_AED: $===AEE===AEE===AEE===$
  13. 2019-07-31 11:17:01.657 1070-1070/? D/AEE_AED: p 2 poll events 1 revents 1
  14. 2019-07-31 11:17:01.658 1070-1070/? D/AEE_AED: PPM cpu cores:8, online:4
  15. 2019-07-31 11:17:01.659 1070-1070/? D/AEE_AED: aed_main_fork_worker: generator 0xf2a94e10, worker 0xffe6f104, recv_fd 0
  16. 2019-07-31 11:17:01.660 2423-2423/? I/AEE_AED: handle_request(0)
  17. 2019-07-31 11:17:01.660 2423-2423/? I/AEE_AED: check process 2358 name:com.zbk.mcu
  18. 2019-07-31 11:17:01.660 2423-2423/? I/AEE_AED: tid 2417 abort msg address:0x00000000, si_code:1 (request from 2358:10108)
  19. 2019-07-31 11:17:01.661 2423-2423/? W/AEE_AED: debuggerd: handling request: pid=2358 uid=10108 gid=10108 tid=2417
  20. 2019-07-31 11:17:01.663 2423-2423/? I/AEE_AED: [preset_info] pid: 2358, tid: 2417, name: Thread-5  >>> com.zbk.mcu <<<
  21. 2019-07-31 11:17:01.663 2423-2423/? D/AEE_AED: ptrace_siblings
  22. 2019-07-31 11:17:01.683 2423-2423/? D/AEE_AED: debuggerd: drop privileges
  23. 2019-07-31 11:17:01.734 2423-2423/? I/AEE_AED: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  24. 2019-07-31 11:17:01.734 2423-2423/? I/AEE_AED: Build fingerprint: 'alps/full_zbk6757_66_x1/zbk6757_66_x1:7.0/NRD90M/1520584492:user/dev-keys'
  25. 2019-07-31 11:17:01.734 2423-2423/? I/AEE_AED: Revision: '0'
  26. 2019-07-31 11:17:01.734 2423-2423/? I/AEE_AED: ABI: 'arm'
  27. 2019-07-31 11:17:01.735 2423-2423/? I/AEE_AED: pid: 2358, tid: 2417, name: Thread-5  >>> com.zbk.mcu <<<
  28. 2019-07-31 11:17:01.735 2423-2423/? I/AEE_AED: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
  29. 2019-07-31 11:17:01.735 2423-2423/? I/AEE_AED:     r0 00000000  r1 00000000  r2 00000000  r3 00000000
  30. 2019-07-31 11:17:01.735 2423-2423/? I/AEE_AED:     r4 ffffffff  r5 00000000  r6 00000000  r7 d0c81730
  31. 2019-07-31 11:17:01.735 2423-2423/? I/AEE_AED:     r8 e2099c34  r9 d1e109d8  sl d1e0f800  fp d1e101c4
  32. 2019-07-31 11:17:01.735 2423-2423/? I/AEE_AED:     ip ef50fd88  sp d0c81720  lr ef4d6a79  pc ef49e6d8  cpsr 600b0030
  33. 2019-07-31 11:17:01.739 365-541/? D/AALService: 07-31 11:17:01.577 BL= 351,CABC= 256, 07-31 11:17:01.631 BL= 350,CABC= 256, 07-31 11:17:01.649 BL= 351,CABC= 256, 07-31 11:17:01.702 BL= 352,CABC= 256, 07-31 11:17:01.738 BL= 353,CABC= 256,
  34. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED: backtrace:
  35. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED:     #00 pc 000186d8  /system/lib/libc.so (strlen+71)
  36. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED:     #01 pc 00050a75  /system/lib/libc.so (__strlen_chk+4)
  37. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED:     #02 pc 0003f957  /system/lib/libc.so (sscanf+98)
  38. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED:     #03 pc 001e89a1  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN13CBVCSPSessionC1EP19_BVCSP_SessionParam+340)
  39. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED:     #04 pc 001e955f  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN13CBVCSPSession6CreateEP19_BVCSP_SessionParamP12CBVCSPGlobal+18)
  40. 2019-07-31 11:17:01.742 2423-2423/? I/AEE_AED:     #05 pc 001e9cc7  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork5LoginEPPvP19_BVCSP_SessionParam+58)
  41. 2019-07-31 11:17:01.743 2423-2423/? I/AEE_AED:     #06 pc 001e9b7f  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork14HandleAsyncMsgEv+66)
  42. 2019-07-31 11:17:01.743 2423-2423/? I/AEE_AED:     #07 pc 001e9967  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork4PollEv+58)
  43. 2019-07-31 11:17:01.743 2423-2423/? I/AEE_AED:     #08 pc 001e98b7  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork14Pro_Thread_RunEPv+90)
  44. 2019-07-31 11:17:01.743 2423-2423/? I/AEE_AED:     #09 pc 000507bc  /data/app/com.zbk.mcu-2/lib/arm/libBVP2P.so
  45. 2019-07-31 11:17:01.766 967-1083/? I/WindowManager: Destroying surface Surface(name=FastStarting) called by com.android.server.wm.WindowStateAnimator.destroySurface:2137 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:948 com.android.server.wm.WindowState.destroyOrSaveSurface:2113 com.android.server.wm.AppWindowToken.destroySurfaces:372 com.android.server.wm.WindowStateAnimator.finishExit:586 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:512 com.android.server.wm.WindowAnimator.updateWindowsLocked:307 com.android.server.wm.WindowAnimator.animateLocked:708
  46. 2019-07-31 11:17:01.767 967-1083/? D/Surface: Surface::disconnect(this=0x71fef01000,api=2)
  47. 2019-07-31 11:17:01.767 355-547/? I/BufferQueueProducer: [FastStarting](this:0x7c68666000,id:588,api:2,p:-1,c:355) disconnect(P): api 2
  48. 2019-07-31 11:17:01.767 355-547/? I/BufferQueueConsumer: [FastStarting](this:0x7c68666000,id:588,api:2,p:-1,c:355) getReleasedBuffers: returning mask 0xffffffffffffffff
  49. 2019-07-31 11:17:01.783 355-355/? I/BufferQueueConsumer: [FastStarting](this:0x7c68666000,id:588,api:2,p:-1,c:-1) disconnect(C)
  50. 2019-07-31 11:17:01.783 355-355/? I/BufferQueue: [FastStarting](this:0x7c68666000,id:588,api:2,p:-1,c:-1) ~BufferQueueCore
  51. 2019-07-31 11:17:01.951 2341-2341/? V/PhoneWindow: DecorView setVisiblity: visibility = 4, Parent = ViewRoot{a5cb11a com.android.launcher3/com.android.launcher3.Launcher,ident = 9}, this = DecorView@f744f76[Launcher]
  52. 2019-07-31 11:17:01.966 967-1369/? I/WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2137 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:948 com.android.server.wm.WindowState.destroyOrSaveSurface:2113 com.android.server.wm.AppWindowToken.destroySurfaces:372 com.android.server.wm.AppWindowToken.notifyAppStopped:398 com.android.server.wm.WindowManagerService.notifyAppStopped:4747 com.android.server.am.ActivityStack.activityStoppedLocked:1345 com.android.server.am.ActivityManagerService.activityStopped:7495
  53. 2019-07-31 11:17:01.972 365-541/? D/AALService: 07-31 11:17:01.792 BL= 354,CABC= 256, 07-31 11:17:01.828 BL= 355,CABC= 256, 07-31 11:17:01.882 BL= 356,CABC= 256, 07-31 11:17:01.918 BL= 357,CABC= 256, 07-31 11:17:01.972 BL= 358,CABC= 256,
  54. 2019-07-31 11:17:01.981 355-355/? I/BufferQueueConsumer: [com.android.launcher3/com.android.launcher3.Launcher](this:0x7c703d0800,id:587,api:1,p:-1,c:-1) disconnect(C)
  55. 2019-07-31 11:17:01.981 355-355/? I/BufferQueue: [com.android.launcher3/com.android.launcher3.Launcher](this:0x7c703d0800,id:587,api:1,p:-1,c:-1) ~BufferQueueCore
  56. 2019-07-31 11:17:02.079 1870-1884/? D/GasService: FG app changed: from com.android.launcher3 to com.zbk.mcu
  57. 2019-07-31 11:17:02.188 365-541/? D/AALService: 07-31 11:17:02.008 BL= 359,CABC= 256, 07-31 11:17:02.062 BL= 360,CABC= 256, 07-31 11:17:02.098 BL= 361,CABC= 256, 07-31 11:17:02.152 BL= 362,CABC= 256, 07-31 11:17:02.188 BL= 363,CABC= 256,
  58. 2019-07-31 11:17:02.221 346-346/? I/wmt_launcher: fw log ctrl flag has been set
  59. 2019-07-31 11:17:02.221 346-346/? I/wmt_launcher: fw dynamic ctrl flag has been set
  60. 2019-07-31 11:17:02.259 365-541/? D/AALService: 07-31 11:17:02.242 BL= 364,CABC= 256,
  61. 2019-07-31 11:17:02.761 967-1902/? D/JobSchedulerService: new job pkgname = android
  62. 2019-07-31 11:17:02.761 967-1902/? D/JobSchedulerService: old job pkgname = android
  63. 2019-07-31 11:17:02.780 967-1079/? I/BootReceiver: Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
  64. 2019-07-31 11:17:02.780 2423-2423/? I/AEE_AED: request.action: 0
  65. 2019-07-31 11:17:02.780 2423-2423/? V/AEE_AED: dashboard_record_update() : rec->module = com.zbk.mcu
  66. 2019-07-31 11:17:02.780 2423-2423/? D/AEE_AED: Duplicated exception, cnt = 14
  67. 2019-07-31 11:17:02.780 2423-2423/? D/AEE_AED: Last exception time: 1564541066
  68. 2019-07-31 11:17:02.780 2423-2423/? D/AEE_AED: cur time: 1564543022
  69. 2019-07-31 11:17:02.780 2423-2423/? D/AEE_AED: Skip for Exp level'0'
  70. 2019-07-31 11:17:02.789 1070-1070/? D/AEE_AED: clear ppm settings
  71. 2019-07-31 11:17:02.790 1070-1070/? D/AEE_AED: $===AEE===AEE===AEE===$
  72. 2019-07-31 11:17:02.793 967-2424/? W/ActivityManager:   Force finishing activity com.zbk.mcu/.MainActivity
  73. 2019-07-31 11:17:02.811 967-2424/? V/WindowManager: Set focused app to: AppWindowToken{b261879 token=Token{ac6c4c3 ActivityRecord{e6d4872 u0 com.android.launcher3/.Launcher t713}}} old focus=AppWindowToken{8fb2efa token=Token{4ebed1c ActivityRecord{170e68f u0 com.zbk.mcu/.MainActivity t752}}} moveFocusNow=true
  74. 2019-07-31 11:17:02.812 967-2424/? V/WindowManager: findFocusedWindow: Reached focused app=AppWindowToken{b261879 token=Token{ac6c4c3 ActivityRecord{e6d4872 u0 com.android.launcher3/.Launcher t713}}} target=AppWindowToken{8fb2efa token=Token{4ebed1c ActivityRecord{170e68f u0 com.zbk.mcu/.MainActivity t752}}}
  75. 2019-07-31 11:17:02.812 967-2424/? V/WindowManager: Changing focus from Window{812d54c u0 com.zbk.mcu/com.zbk.mcu.MainActivity} to null Callers=com.android.server.wm.WindowManagerService.setFocusedApp:4176 com.android.server.am.ActivityManagerService.setFocusedActivityLocked:3171 com.android.server.am.ActivityStackSupervisor.moveHomeStackTaskToTop:665 com.android.server.am.ActivityStack.adjustFocusedActivityLocked:3438
  76. 2019-07-31 11:17:02.812 967-2424/? D/WindowManager: Input focus has changed to null
  77. 2019-07-31 11:17:02.814 967-1251/? I/libPerfService: 2: set freq: 1638000, 2340000,
  78. 2019-07-31 11:17:02.815 967-1251/? I/libPerfService: 2: set: -1, 4,
  79. 2019-07-31 11:17:02.816 967-2426/? D/AES: onEndOfErrorDumpThread: data_app_native_crash Process: com.zbk.mcu
  80.     Flags: 0x38c8bf46
  81.     Package: com.zbk.mcu v1 (1.0)
  82.     Foreground: Yes
  83.     Build: alps/full_zbk6757_66_x1/zbk6757_66_x1:7.0/NRD90M/1520584492:user/dev-keys
  84.    
  85.     *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
  86.     Build fingerprint: 'alps/full_zbk6757_66_x1/zbk6757_66_x1:7.0/NRD90M/1520584492:user/dev-keys'
  87.     Revision: '0'
  88.     ABI: 'arm'
  89.     pid: 2358, tid: 2417, name: Thread-5  >>> com.zbk.mcu <<<
  90.     signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
  91.         r0 00000000  r1 00000000  r2 00000000  r3 00000000
  92.         r4 ffffffff  r5 00000000  r6 00000000  r7 d0c81730
  93.         r8 e2099c34  r9 d1e109d8  sl d1e0f800  fp d1e101c4
  94.         ip ef50fd88  sp d0c81720  lr ef4d6a79  pc ef49e6d8  cpsr 600b0030
  95.    
  96.     backtrace:
  97.         #00 pc 000186d8  /system/lib/libc.so (strlen+71)
  98.         #01 pc 00050a75  /system/lib/libc.so (__strlen_chk+4)
  99.         #02 pc 0003f957  /system/lib/libc.so (sscanf+98)
  100.         #03 pc 001e89a1  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN13CBVCSPSessionC1EP19_BVCSP_SessionParam+340)
  101.         #04 pc 001e955f  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN13CBVCSPSession6CreateEP19_BVCSP_SessionParamP12CBVCSPGlobal+18)
  102.         #05 pc 001e9cc7  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork5LoginEPPvP19_BVCSP_SessionParam+58)
  103.         #06 pc 001e9b7f  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork14HandleAsyncMsgEv+66)
  104.         #07 pc 001e9967  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork4PollEv+58)
  105.         #08 pc 001e98b7  /data/app/com.zbk.mcu-2/lib/arm/libbvcsp.so (_ZN19CBVCSPThreadNetwork14Pro_Thread_RunEPv+90)
  106.         #09 pc 000507bc  /data/app/com.zbk.mcu-2/lib/arm/libBVP2P.so
  107.      2358
  108. 2019-07-31 11:17:02.816 967-2426/? W/AES: Exception Log handling...
  109. 2019-07-31 11:17:02.818 967-2426/? D/AES: ExceptionLog: notify aed
  110. 2019-07-31 11:17:02.818 967-2426/? D/AES:     process : com.zbk.mcu
  111. 2019-07-31 11:17:02.818 967-2426/? D/AES:      module : com.zbk.mcu v1 (1.0)
  112. 2019-07-31 11:17:02.818 967-2426/? D/AES:       cause : data_app_native_crash
  113. 2019-07-31 11:17:02.818 967-2426/? D/AES:       pid : 2358
  114. 2019-07-31 11:17:02.818 967-2426/? W/AES: native_crash should be processed by aee already
  115. 2019-07-31 11:17:02.825 355-355/? I/DisplayDevice: [Built-in Screen (type:0)] fps:28.088978,dur:1637.65,max:826.39,min:16.36
  116. 2019-07-31 11:17:02.834 365-541/? D/AALService: 07-31 11:17:02.834 BL= 365,CABC= 256,
  117. 2019-07-31 11:17:02.838 967-1061/? D/WindowClient: Add to mViews: DecorView@ef0ca11[mcu], this = android.view.WindowManagerGlobal@2f5ab84
  118. 2019-07-31 11:17:02.839 967-25469/? D/OpenGLRenderer: CanvasContext() 0x71f3a81800
  119. 2019-07-31 11:17:02.840 967-1061/? D/ViewRootImpl[mcu]: hardware acceleration is enabled, this = ViewRoot{47565ba Application Error: com.zbk.mcu,ident = 57}
  120. 2019-07-31 11:17:02.841 967-1061/? V/WindowManager: Changing focus from null to Window{ae8b3c8 u0 Application Error: com.zbk.mcu} Callers=com.android.server.wm.WindowManagerService.addWindow:2331 com.android.server.wm.Session.addToDisplay:186 android.view.ViewRootImpl.setView:753 android.view.WindowManagerGlobal.addView:351
  121. 2019-07-31 11:17:02.842 967-1061/? D/WindowManager: Input focus has changed to Window{ae8b3c8 u0 Application Error: com.zbk.mcu}
  122. 2019-07-31 11:17:02.845 355-355/? I/BufferQueue: [unnamed-355-590](this:0x7c7024b800,id:590,api:0,p:-1,c:-1) BufferQueue core=(355:/system/bin/surfaceflinger)
  123. 2019-07-31 11:17:02.846 355-355/? I/BufferQueueConsumer: [unnamed-355-590](this:0x7c7024b800,id:590,api:0,p:-1,c:355) connect(C): consumer=(355:/system/bin/surfaceflinger) controlledByApp=false
  124. 2019-07-31 11:17:02.846 355-355/? I/BufferQueueConsumer: [unnamed-355-590](this:0x7c7024b800,id:590,api:0,p:-1,c:355) setConsumerName: unnamed-355-590
  125. 2019-07-31 11:17:02.846 355-355/? I/BufferQueueConsumer: [Application Error: com.zbk.mcu](this:0x7c7024b800,id:590,api:0,p:-1,c:355) setConsumerName: Application Error: com.zbk.mcu
  126. 2019-07-31 11:17:02.846 355-355/? I/BufferQueueProducer: [](this:0x7c7024b800,id:590,api:0,p:-1,c:355) setMaxDequeuedBufferCount: maxDequeuedBuffers = 2
  127. 2019-07-31 11:17:02.846 355-355/? I/BufferQueueConsumer: [Application Error: com.zbk.mcu](this:0x7c7024b800,id:590,api:0,p:-1,c:355) setDefaultBufferSize: width=193 height=193
  128. 2019-07-31 11:17:02.851 967-1224/? W/InputDispatcher: channel '812d54c com.zbk.mcu/com.zbk.mcu.MainActivity (server)' ~ Consumer closed input channel or an error occurred.  events=0x9
  129. 2019-07-31 11:17:02.852 967-1224/? E/InputDispatcher: channel '812d54c com.zbk.mcu/com.zbk.mcu.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed!
  130. 2019-07-31 11:17:02.856 355-1820/? I/BufferQueueProducer: [com.zbk.mcu/com.zbk.mcu.MainActivity](this:0x7c6e289000,id:589,api:1,p:-1,c:355) disconnect(P): api 1
  131. 2019-07-31 11:17:02.856 967-3832/? D/GraphicsStats: Buffer count: 4
  132. 2019-07-31 11:17:02.856 355-1820/? I/BufferQueueConsumer: [com.zbk.mcu/com.zbk.mcu.MainActivity](this:0x7c6e289000,id:589,api:1,p:-1,c:355) getReleasedBuffers: returning mask 0xffffffffffffffff
  133. 2019-07-31 11:17:02.856 967-30310/? D/DisplayManagerService: Display listener for pid 2358 died.
  134. 2019-07-31 11:17:02.856 355-1820/? D/GuiExt: [GuiExtS] binder of dump tunnel(RB-0xe20b6ae0) died
  135. 2019-07-31 11:17:02.856 355-1820/? I/SurfaceFlinger: EventThread Client Pid (2358) disconnected by (355)
  136. 2019-07-31 11:17:02.856 355-1820/? I/SurfaceFlinger: EventThread Client Pid (2358) disconnected by (355)
  137. 2019-07-31 11:17:02.856 355-1820/? I/SurfaceFlinger: EventThread Client Pid (2358) disconnected by (355)
  138. 2019-07-31 11:17:02.857 386-386/? I/Zygote: Process 2358 exited due to signal (11)
  139. 2019-07-31 11:17:02.858 967-3832/? I/ActivityManager: Process com.zbk.mcu (pid 2358) has died
  140. 2019-07-31 11:17:02.858 967-3832/? D/ActivityManager: handleAppDiedLocked: app = ProcessRecord{8bac61 2358:com.zbk.mcu/u0a108}, app.pid = 2358
  141. 2019-07-31 11:17:02.858 967-3832/? D/ActivityManager: cleanUpApplicationRecord -- 2358
  142. 2019-07-31 11:17:02.861 355-355/? I/BufferQueueConsumer: [Application Error: com.zbk.mcu](this:0x7c7024b800,id:590,api:0,p:-1,c:355) setDefaultBufferSize: width=1218 height=636
  143. 2019-07-31 11:17:02.863 967-1061/? D/Surface: Surface::allocateBuffers(this=0x71fecff400)
  144. 2019-07-31 11:17:02.863 967-25469/? D/OpenGLRenderer: CanvasContext() 0x71f3a81800 initialize window=0x71fecff400, title=Application Error: com.zbk.mcu
  145. 2019-07-31 11:17:02.863 967-25469/? I/OpenGLRenderer: Initialized EGL, version 1.4
  146. 2019-07-31 11:17:02.863 967-25469/? D/OpenGLRenderer: Swap behavior 1
  147. 2019-07-31 11:17:02.864 967-1601/? I/WindowManager: WIN DEATH: Window{812d54c u0 com.zbk.mcu/com.zbk.mcu.MainActivity}
  148. 2019-07-31 11:17:02.864 967-1601/? W/InputDispatcher: Attempted to unregister already unregistered input channel '812d54c com.zbk.mcu/com.zbk.mcu.MainActivity (server)'
  149. 2019-07-31 11:17:02.864 967-1601/? I/WindowManager: Destroying surface Surface(name=com.zbk.mcu/com.zbk.mcu.MainActivity) called by com.android.server.wm.WindowStateAnimator.destroySurface:2137 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:948 com.android.server.wm.WindowState.removeLocked:1469 com.android.server.wm.WindowManagerService.removeWindowInnerLocked:2669 com.android.server.wm.WindowManagerService.removeWindowLocked:2617 com.android.server.wm.WindowState$DeathRecipient.binderDied:1800 android.os.BinderProxy.sendDeathNotice:695 <bottom of call stack>
  150. 2019-07-31 11:17:02.860 25469-25469/? I/RenderThread: type=1400 audit(0.0:1057): avc: denied { read } for name="ged" dev="proc" ino=4026532520 scontext=u:r:system_server:s0 tcontext=u:object_r:proc_ged:s0 tclass=file permissive=1
  151. 2019-07-31 11:17:02.860 25469-25469/? I/RenderThread: type=1400 audit(0.0:1058): avc: denied { open } for path="/proc/ged" dev="proc" ino=4026532520 scontext=u:r:system_server:s0 tcontext=u:object_r:proc_ged:s0 tclass=file permissive=1
  152. 2019-07-31 11:17:02.865 967-25469/? D/OpenGLRenderer: Created EGL context (0x72007fd580)
  153. 2019-07-31 11:17:02.866 967-25469/? D/OpenGLRenderer: ProgramCache.init: enable enhancement 1
  154. 2019-07-31 11:17:02.866 967-25469/? I/OpenGLRenderer: Already had program atlas...
  155. 2019-07-31 11:17:02.866 967-25469/? D/OpenGLRenderer: Initializing program cache from 0x0, size = -1
  156. 2019-07-31 11:17:02.867 355-841/? I/SurfaceFlinger: [SF client] DEL(0x7c68665e80) for (967:system_server)
  157. 2019-07-31 11:17:02.867 355-841/? D/SurfaceFlinger:     remove: com.zbk.mcu/com.zbk.mcu.MainActivity
  158. 2019-07-31 11:17:02.867 967-25469/? D/MALI: eglCreateImageKHR:513: [Crop] 0 0 896 1344  img[896 1344]
  159. 2019-07-31 11:17:02.867 967-25469/? D/Surface: Surface::connect(this=0x71fecff400,api=1)
  160. 2019-07-31 11:17:02.867 355-2444/? I/BufferQueueProducer: [Application Error: com.zbk.mcu](this:0x7c7024b800,id:590,api:1,p:967,c:355) connect(P): api=1 producer=(967:system_server) producerControlledByApp=false
  161. 2019-07-31 11:17:02.868 967-25469/? W/libEGL: [ANDROID_RECORDABLE] format: 1
  162. 2019-07-31 11:17:02.868 1279-1279/? D/PhoneStatusBar: setSystemUiVisibility vis=8 mask=ffffffff oldVal=608 newVal=8 diff=600
  163. 2019-07-31 11:17:02.869 967-25469/? D/mali_winsys: EGLint new_window_surface(egl_winsys_display*, void*, EGLSurface, EGLConfig, egl_winsys_surface**, egl_color_buffer_format*, EGLBoolean) returns 0x3000
  164. 2019-07-31 11:17:02.869 967-1251/? I/libPerfService: [perfNotifyAppState] foreground:com.android.launcher3, pid:2341
  165. 2019-07-31 11:17:02.869 967-1251/? I/libPerfService: [switchSportsMode] enable:0, currPower:0
  166. 2019-07-31 11:17:02.870 967-1251/? E/libPerfService: write file (/proc/fliperfs/cg_threshold) fail, count: -1
  167. 2019-07-31 11:17:02.871 967-1251/? I/libPerfService: perfCheckPackAffinity foreground:com.android.launcher3, latest:
  168. 2019-07-31 11:17:02.872 967-3832/? D/InputReader: InputReader:: getSwitchState lock
  169. 2019-07-31 11:17:02.872 967-3832/? D/InputReader: InputReader::getStateLocked:: return
  170. 2019-07-31 11:17:02.879 355-355/? I/BufferQueueConsumer: [com.zbk.mcu/com.zbk.mcu.MainActivity](this:0x7c6e289000,id:589,api:1,p:-1,c:-1) disconnect(C)
  171. 2019-07-31 11:17:02.880 355-355/? I/BufferQueue: [com.zbk.mcu/com.zbk.mcu.MainActivity](this:0x7c6e289000,id:589,api:1,p:-1,c:-1) ~BufferQueueCore
  172. 2019-07-31 11:17:02.881 967-25469/? D/OpenGLRenderer: CacheTexture 3 upload: x, y, width height = 0, 0, 304, 273
  173. 2019-07-31 11:17:02.881 355-1820/? I/BufferQueueProducer: [Application Error: com.zbk.mcu](this:0x7c7024b800,id:590,api:1,p:967,c:355) new GraphicBuffer needed
  174. 2019-07-31 11:17:02.885 967-25469/? D/OpenGLRenderer: ProgramCache.generateProgram: 240518168576
  175. 2019-07-31 11:17:02.885 2341-2341/? V/PhoneWindow: DecorView setVisiblity: visibility = 0, Parent = ViewRoot{a5cb11a com.android.launcher3/com.android.launcher3.Launcher,ident = 9}, this = DecorView@f744f76[Launcher]
  176. 2019-07-31 11:17:02.886 967-25469/? D/OpenGLRenderer: ProgramCache.generateProgram: 8864812498944
  177. 2019-07-31 11:17:02.888 967-25469/? D/OpenGLRenderer: ProgramCache.generateProgram: 8830452760579
  178. 2019-07-31 11:17:02.888 365-541/? D/AALService: 07-31 11:17:02.870 BL= 366,CABC= 256,
  179. 2019-07-31 11:17:02.891 967-25469/? D/OpenGLRenderer: ProgramCache.generateProgram: 8796102459457
  180. 2019-07-31 11:17:02.888 3603-3603/? I/ged-swd: type=1400 audit(0.0:1059): avc: denied { ioctl } for path="/proc/ged" dev="proc" ino=4026532520 ioctlcmd=6704 scontext=u:r:system_server:s0 tcontext=u:object_r:proc_ged:s0 tclass=file permissive=1
  181. 2019-07-31 11:17:02.893 355-547/? I/BufferQueueProducer: [Application Error: com.zbk.mcu](this:0x7c7024b800,id:590,api:1,p:967,c:355) new GraphicBuffer needed
  182. 2019-07-31 11:17:02.897 355-355/? D/MALI: eglCreateImageKHR:513: [Crop] 0 0 0 0  img[1218 636]
copycode
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
6#
poston 2019-7-31 11:28 | authorOnly
konka post on2019-7-31 11:19
你好,请查看。

从打印的日志上来看,应该是你们填写的登录参数有问题导致出错,可以检查一下参数为非法值或者为空
reply agree Against

使用道具 report

5

主题

22

帖子

81

积分

member

Rank: 2

积分
81
7#
 Owner| poston 2019-7-31 14:57 | authorOnly
现在测试设备的授权类型位MCP. 然后进行登录操作之后,返回-65536。代码是根据之前MCP的开发文档来写的,请帮忙看看代码有没有错误。

另外, PUDeviceInfo 好像不是MCP SDK中的类,这是需要我们自己创建吗,initPUEntityInfo()其主要功能是用来做什么的?

返回的log如下:
  1. 2019-07-31 14:43:24.615 3213-3233/com.zbk.mcu I/CoreSDK: ----------------->PostMessageToNative LOGIN
  2. 2019-07-31 14:43:24.615 3213-3233/com.zbk.mcu I/CoreSDK: ----------------->S_ID -> LOGIN
  3. 2019-07-31 14:43:24.615 3213-3233/com.zbk.mcu I/CoreSDK: ----------------->I_RESULT -> 0
  4. 2019-07-31 14:43:24.616 3213-3233/com.zbk.mcu I/CoreSDK: <-----------------PostMessageToNative
  5. 2019-07-31 14:43:24.620 3213-3232/com.zbk.mcu I/CUGlobal: pMsg->iAction = 0
  6. 2019-07-31 14:43:24.620 3213-3232/com.zbk.mcu I/CUGlobal: File:jni-r19c/../jni/CUGlobal.cpp,Func = handleThreadMsg, begin
  7. 2019-07-31 14:43:24.620 3213-3232/com.zbk.mcu I/CUGlobal: file = jni-r19c/../jni/CUGlobal.cpp, debug line = 545
  8. 2019-07-31 14:43:24.623 3213-3253/com.zbk.mcu I/CUGlobal: File:jni-r19c/../jni/CUGlobal.cpp,Func = OnSessionEvent, begin
  9. 2019-07-31 14:43:24.623 3213-3253/com.zbk.mcu I/CUGlobal: register error!iResult = -65536
  10. 2019-07-31 14:43:24.623 3213-3253/com.zbk.mcu I/YateMsgHandler: ------------------>PostToJavaHandler prot.sm.session.event
  11. 2019-07-31 14:43:24.624 3213-3253/com.zbk.mcu I/YateMsgHandler: ------------------>S_ID -> prot.sm.session.event
  12. 2019-07-31 14:43:24.624 3213-3253/com.zbk.mcu I/YateMsgHandler: ------------------>I_RESULT -> -65536
  13. 2019-07-31 14:43:24.624 3213-3253/com.zbk.mcu I/YateMsgHandler: ------------------>I_METHOD -> 1
  14. 2019-07-31 14:43:24.624 3213-3253/com.zbk.mcu I/YateMsgHandler: ------------------>I_TOKEN -> 1
  15. 2019-07-31 14:43:24.624 3213-3253/com.zbk.mcu I/YateMsgHandler: <------------------PostToJavaHandler
copycode


这是登录的代码:
  1.     /**
  2.      * 登陆
  3.      */
  4.     private void login() {

  5.         BVCU_ServerParam serverParam = new BVCU_ServerParam();
  6. //Server地址,只支持IP地址,如127.0.0.1,域名需上层转换为IP地址
  7.         serverParam.szServerAddr = "172.21.6.106";//Constant.SERVER_ADDRESS;
  8. //登录用户名
  9.         serverParam.szUserName = "admin";//Constant.USER_NAME;
  10.         //Server端口号
  11.         serverParam.iServerPort = 9701;//Constant.SERVER_PORT;
  12.         //登录密码
  13.         serverParam.szPassword = "123456";//Constant.USER_PWD;
  14.         //与Server之间命令通道使用的传输层协议类型,参见BVCU_PROTOTYPE_*。
  15. //        目前BVCU_CLIENT_TYPE_PU仅支持UDP(1), 其它类型仅支持TCP(0)
  16.         serverParam.iCmdProtoType = 0;
  17.         //Client ID。库内部会根据ClientType自动添加"CU_/PU_/NRU_/VTDU_/CUSTOM_"等前缀。
  18. //        如果szClientID中包含了'_'字符,库内将不再添加前缀。
  19. //        调用者应选择一种ID分配方式,尽量使登录的ID不同。如果为空,则由库内部生成ID。
  20. //        PU设备必须填写该字段,并且该ID字符串为16进制数值字符串
  21.         serverParam.szClientID = UUID.randomUUID().toString();//Constant.CLIENT_ID;
  22. //应用程序名称。该名称被Server端记录到Log中
  23.         serverParam.szUserAgent = "zbk_agent";//Constant.USER_AGENT;


  24.         BVCU_SessionParam param = new BVCU_SessionParam();

  25.         param.iClientType = BVCU_CLIENT_TYPE.BVCU_CLIENT_TYPE_CU;
  26.         param.iCmdProtoType = serverParam.iCmdProtoType;
  27.         param.iMaxChannelOpenCount = 1;
  28.         param.iServerPort = serverParam.iServerPort;
  29. //命令超过iTimeOut未收到回响则认为失败,单位毫秒。必须>0 默认:30*1000毫秒
  30.         param.iTimeOut = 30 * 1000;
  31.         param.szClientID = serverParam.szClientID;
  32.         param.szPassword = serverParam.szPassword;
  33.         param.szServerAddr = serverParam.szServerAddr;
  34.         param.szUserAgent = serverParam.szUserAgent;
  35.         param.szUserName = serverParam.szUserName;

  36.         BVPU_ServerParam bvpuServerParam = new BVPU_ServerParam();
  37. //媒体类型,设置支持音视频
  38.         bvpuServerParam.iMediaDir ^= BVCU_MediaDir.BVCU_MEDIADIR_VIDEOSEND;
  39.         bvpuServerParam.iMediaDir ^= BVCU_MediaDir.BVCU_MEDIADIR_TALKONLY;

  40. //如果param.iClientType 设置为 BVCU_CLIENT_TYPE.BVCU_CLIENT_TYPE_UA;,需添加下面代码才能生效
  41.         if (serverParam.szClientID.contains("UA")) {
  42.             param.iClientType = BVCU_CLIENT_TYPE.BVCU_CLIENT_TYPE_UA;
  43.             param.stEntityInfo = new BVCU_EntityInfo();
  44.             PUDeviceInfo.initPUEntityInfo(param.stEntityInfo, bvpuServerParam);
  45.         }

  46.         BVCU.getSDK().login(param); //执行登陆接口

  47.     }
copycode
reply agree Against

使用道具 report

2

主题

414

帖子

1188

积分

vipMem

Rank: 6Rank: 6

积分
1188
8#
poston 2019-7-31 15:08 | authorOnly
konka post on2019-7-31 14:57
现在测试设备的授权类型位MCP. 然后进行登录操作之后,返回-65536。代码是根据之前MCP的开发文档来写的,请 ...

SDK里面有DEMO,麻烦根据DEMO来改,文档有滞后性
reply agree Against

使用道具 report

10

主题

531

帖子

2491

积分

admin

Rank: 9Rank: 9Rank: 9

积分
2491
9#
poston 2019-7-31 15:08 | authorOnly
我们更新下SDK给您,发微信
reply agree Against

使用道具 report

5

主题

22

帖子

81

积分

member

Rank: 2

积分
81
10#
 Owner| poston 2019-8-1 11:33 | authorOnly
请问一下, UA, CU, PU 这三个ClientType类型有什么区别? 功能上用起来有什么不一样?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-12-22 17:55 , Processed in 0.063473 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList