mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 4980|reply: 22
打印 prevThread nextThread

认证问题

[copyURL]

73

主题

319

帖子

1121

积分

vipMem

Rank: 6Rank: 6

积分
1121
jumpTo
owner
poston 2019-5-22 18:10 | authorOnly 回帖奖励 |viewing |阅读模式
现遇到如下情况:
1,使用wifi 进行认证后 再使用电信4g卡的情况下 需要重新认证,经发现仅wifi情况下获取的imei和电信卡获取的imei(其实获取的是meid)是不一样的,
就导致同一台设备在使用wifi  和电信卡的时候需要认证两次。
电信卡认证日志:
{"stEntity":{"iAPILevel":27,"iDensityDpi":160,"iHeightPixels":320,"iWidthPixels":240,"szAndroidID":"382f3519bf0ec2f6","szBoard":"msm8953","szBrand":"DSJ","szBuildTime":"1556129687000","szDeviceID":"99000843131692","szFingerPrint":"DSJ/LB1807/LB1807:8.1.0/OPM1.171019.011/LB1807.4.01.03.00:userdebug/release-keys","szHardware":"qcom","szMacAddress":"02:00:00:00:00:00","szModel":"LB01","szRadio":".TA.2.3.c1-00652-8953_GEN_PACK-1"},"szAuthParam":"NULL","szLicense":"F88291D8-E4AD-45E7-8B79-B081E93BB586","szPath":"/storage/emulated/0"}
auth---->{"iAuthStatus": 200, "szAuthType":"auth.type.imei"}


设备id 23131692   图传认证id  38101

wifi认证日志:
{"stEntity":{"iAPILevel":27,"iDensityDpi":160,"iHeightPixels":320,"iWidthPixels":240,"szAndroidID":"382f3519bf0ec2f6","szBoard":"msm8953","szBrand":"DSJ","szBuildTime":"1556129687000","szDeviceID":"990008431316921","szFingerPrint":"DSJ/LB1807/LB1807:8.1.0/OPM1.171019.011/LB1807.4.01.03.00:userdebug/release-keys","szHardware":"qcom","szMacAddress":"02:00:00:00:00:00","szModel":"LB01","szRadio":".TA.2.3.c1-00652-8953_GEN_PACK-1"},"szAuthParam":"ky62otrHVz8VCLe29kWqn7fU1URkTtQws/asOVr0BND9qmsBYXPjogKHm4YFClv6C894giiEraRC+8g4qo0skgGz+JUx8V86b0/Aql56HhJ3FFASydooE77e84Ohnx6E9S8kgVI2KwXexvc+f10n1Zd6fX7Nh4StMO3YjbMQS8jipPrhD2lhiKQlxpBaxI9dlXkFke80KCnCTj0dqDqmWA6BDDmCEVzCo4KGP45M14wvvV2IA/WylbUbTmJXxCba","szLicense":"F88291D8-E4AD-45E7-8B79-B081E93BB586","szPath":"/storage/emulated/0"}
auth---->{"iAuthStatus": 200, "szAuthType":"auth.type.imei"}


设备id  图传认证id  38101

从上诉日志可以看出  两次得到的szDeviceID 是不一样的 4g电信卡的szDeviceID 是 99000843131692  wifi 的szDeviceID  是 990008431316921

2,发现上述问题后,我们对认证的代码进行了优化,wifi和4g电信卡的情况下都上传的是imei号码
电信4g卡认证的日志:
{"stEntity":{"iAPILevel":27,"iDensityDpi":160,"iHeightPixels":320,"iWidthPixels":240,"szAndroidID":"382f3519bf0ec2f6","szBoard":"msm8953","szBrand":"DSJ","szBuildTime":"1556129687000","szDeviceID":"990008431316921","szFingerPrint":"DSJ/LB1807/LB1807:8.1.0/OPM1.171019.011/LB1807.4.01.03.00:userdebug/release-keys","szHardware":"qcom","szMacAddress":"02:00:00:00:00:00","szModel":"LB01","szRadio":".TA.2.3.c1-00652-8953_GEN_PACK-1"},"szAuthParam":"NULL","szLicense":"F88291D8-E4AD-45E7-8B79-B081E93BB586","szPath":"/storage/emulated/0"}
auth---->{"iAuthStatus": 400, "szAuthType":"auth.type.trial"}


获取认证id的时候提示认证失败

wifi认证的日志:
{"stEntity":{"iAPILevel":27,"iDensityDpi":160,"iHeightPixels":320,"iWidthPixels":240,"szAndroidID":"382f3519bf0ec2f6","szBoard":"msm8953","szBrand":"DSJ","szBuildTime":"1556129687000","szDeviceID":"990008431316921","szFingerPrint":"DSJ/LB1807/LB1807:8.1.0/OPM1.171019.011/LB1807.4.01.03.00:userdebug/release-keys","szHardware":"qcom","szMacAddress":"02:00:00:00:00:00","szModel":"LB01","szRadio":".TA.2.3.c1-00652-8953_GEN_PACK-1"},"szAuthParam":"NULL","szLicense":"F88291D8-E4AD-45E7-8B79-B081E93BB586","szPath":"/storage/emulated/0"}
auth---->{"iAuthStatus": 200, "szAuthType":"auth.type.imei"}


可以获取到认证id

从上诉的两份log可以看出 电信4g  和wifi  认证时 上传的 szDeviceID 都是  990008431316921  (整个认证上传的参数都是一样的)
但是返回的结果不一样 ,电信4g卡的返回结果中szAuthType 是 auth.type.trial  而 wifi认证返回的结果szAuthType 是 auth.type.imei

总结上面论述的结论是,wifi 和电信4g卡的认证存在差异,当上传的认证参数不一样时,同一台设备需要认证两次;
当优化后上传相同的认证参数时返回的结果不同,导致4g卡情况下无法认证,无法使用图传。










reply

使用道具 report

1

主题

320

帖子

1147

积分

vipMem

Rank: 6Rank: 6

积分
1147
23#
poston 2019-6-13 20:44 | authorOnly
Aiwinn post on2019-6-13 20:08
可以了,目前我们没有打算用扫描二维码,我能写死Label_ID么

写死是可以的,但是以后就只能找拥有这个二维码的人授权了
reply agree Against

使用道具 report

73

主题

319

帖子

1121

积分

vipMem

Rank: 6Rank: 6

积分
1121
22#
 Owner| poston 2019-6-13 20:08 | authorOnly
Arthur post on2019-6-13 18:47
获取Auth_ID用BVPU.NewIMEI。 两个接口多了一些必须要填的:billEntity.setSzAppType("MPU"); billEntity.s ...

可以了,目前我们没有打算用扫描二维码,我能写死Label_ID么
reply agree Against

使用道具 report

73

主题

319

帖子

1121

积分

vipMem

Rank: 6Rank: 6

积分
1121
21#
 Owner| poston 2019-6-13 20:00 | authorOnly
Arthur post on2019-6-13 18:47
获取Auth_ID用BVPU.NewIMEI。 两个接口多了一些必须要填的:billEntity.setSzAppType("MPU"); billEntity.s ...

另外两个设置了,NewIMEI没设置,我试下,代码改动比较多,对比漏了
reply agree Against

使用道具 report

1

主题

320

帖子

1147

积分

vipMem

Rank: 6Rank: 6

积分
1147
20#
poston 2019-6-13 18:47 | authorOnly
获取Auth_ID用BVPU.NewIMEI。 两个接口多了一些必须要填的:billEntity.setSzAppType("MPU"); billEntity.setUserLabel(“你扫描二维码里的Label_ID”);
reply agree Against

使用道具 report

1

主题

320

帖子

1147

积分

vipMem

Rank: 6Rank: 6

积分
1147
19#
poston 2019-6-13 18:35 | authorOnly
那就是调错接口了,要调用BVPU.NewAuth
reply agree Against

使用道具 report

73

主题

319

帖子

1121

积分

vipMem

Rank: 6Rank: 6

积分
1121
18#
 Owner| poston 2019-6-13 18:27 | authorOnly
Aiwinn post on2019-6-13 18:26
没看到这个TAG,看下这段log
I/BVPU: ------------------>PostToJavaHandler auth
I/BVPU: ----------- ...

我在群里已经授权了id34237
reply agree Against

使用道具 report

73

主题

319

帖子

1121

积分

vipMem

Rank: 6Rank: 6

积分
1121
17#
 Owner| poston 2019-6-13 18:26 | authorOnly
Arthur post on2019-6-13 18:12
没有通过认证,你确定认证过?看下TAG:bvauth。回复1024是认证成功,1025是试用成功。

没看到这个TAG,看下这段log
I/BVPU: ------------------>PostToJavaHandler auth
I/BVPU: ------------------>S_ID -> auth
I/BVPU: ------------------>S_RESULT -> {"iAuthStatus": 200, "szAuthType":"auth.type.imei"}
I/BVPU: <------------------PostToJavaHandler
D/AIWINN_BASE: [ MPUService ] onMessageFromNative auth
I/AIWINN_BASE: [ BillTool ] auth---->{"iAuthStatus": 200, "szAuthType":"auth.type.imei"}
I/BVPU: ------------------>PostToJavaHandler auth.update.param
I/BVPU: ------------------>S_ID -> auth.update.param
I/BVPU: ------------------>S_RESULT -> ky62otrHVz8VCLe29kWqn7fU1URkTtQws/asOVr0BND9qmsBYXPjogKHm4YFClv6C894giiEraRC+8g4qo0skgGz+JUx8V86b0/Aql56HhL2vHFS+zKj6eWezkpDudTd9S8kgVI2KwXexvc+f10n1Zd6fX7Nh4StNJMR9tfuHLbfO0bC+v/Uxg7SZH6q6aPulXkFke80KCmeHgm1M7PQYFIeSETCDJDGWItMElWTOnVC+8g4qo0skhjZ7pZIpHmU
I/BVPU: <------------------PostToJavaHandler
D/AIWINN_BASE: [ MPUService ] onMessageFromNative auth.update.param
D/BillTool: param -> ky62otrHVz8VCLe29kWqn7fU1URkTtQws/asOVr0BND9qmsBYXPjogKHm4YFClv6C894giiEraRC+8g4qo0skgGz+JUx8V86b0/Aql56HhL2vHFS+zKj6eWezkpDudTd9S8kgVI2KwXexvc+f10n1Zd6fX7Nh4StNJMR9tfuHLbfO0bC+v/Uxg7SZH6q6aPulXkFke80KCmeHgm1M7PQYFIeSETCDJDGWItMElWTOnVC+8g4qo0skhjZ7pZIpHmU
reply agree Against

使用道具 report

1

主题

320

帖子

1147

积分

vipMem

Rank: 6Rank: 6

积分
1147
16#
poston 2019-6-13 18:12 | authorOnly
Aiwinn post on2019-6-13 18:00
你好,我们现在合入了新的认证,但是发现登录图传服务器失败,弹下面的log,想问下是什么。
I/BVPU: -- ...

没有通过认证,你确定认证过?看下TAG:bvauth。回复1024是认证成功,1025是试用成功。
reply agree Against

使用道具 report

73

主题

319

帖子

1121

积分

vipMem

Rank: 6Rank: 6

积分
1121
15#
 Owner| poston 2019-6-13 18:00 | authorOnly
xuwei post on2019-5-30 16:58
认证接口改了,依赖的jar包和NDK库改了,NDK库改成了armeabi-v7a,可以先替换libs和jnilibs的所有库文件 ...

你好,我们现在合入了新的认证,但是发现登录图传服务器失败,弹下面的log,想问下是什么。
I/BVPU: ----------------->PostMessageToNative login
I/BVPU: ----------------->S_ID -> login
I/BVPU: ----------------->S_RESULT -> {"bAECEnable":false,"bNativePlayerEnable":true,"iAECDelay":150,"iAECRoutingMode":2,"iAECSuppressionLevel":1,"iBitrate":32000,"iChannelNum":1,"iEncoder":0,"iSamplePrecision":16,"iSampleRate":8000}
I/BVPU: ----------------->S_FUNCTION -> {"bGPSEnable":1,"iBootDuration":0,"iCmdProtoType":0,"iDeviceID":536957040,"iLatitude":225739300,"iLongitude":1139269570,"iMediaDir":13,"iOnlineThrough":4,"iPlatform":0,"iSerialPortCount":1,"iServerPort":9702,"iStreamPathWay":0,"iVersionCode":1890,"stVideoEncode":{"iBitrate":600000,"iColorFormat":1,"iEncoderType":1,"iFramerate":20,"iHeight":720,"iWidth":1280,"iYUVConvert":6},"szChannelName":"video","szDeviceName":"DSJ-HECH1A1","szDeviceType":"PU","szManufacturer":"smartvideo","szServerAddr":"192.168.102.104","szVersionName":"NA20190524_1890"}
I/BVPU: <-----------------PostMessageToNative
I/BVPU: 192.168.102.104 536957040 13 9702
I/BVPU: bAECEnable = 0,audioCfg->iAECSuppressionLevel = 1,audioCfg->iAECDelay = 150
I/SIP: pMsg->iAction = 0
I/SIP: BVCSP_Login failed!
         bResult = -65522
I/BVPU: login ret = 0
I/BVPU: 2019-06-13_17:56:25.650283 <FAIL> RefObject [0xffeaefb8] destroyed with count=2
I/BVPU: 2019-06-13_17:56:25.650613 <FAIL> RefObject::deref() called with count=0 [0xffeaefb8]
I/System.out: szServerAddr=192.168.102.104,szDeviceName=DSJ-HECH1A1,szChannelName=video,iServerPort=9702,iDeviceID=536957040,iMediaDir=13,bGPSEnable=1,iVersionCode=1890,szVersionName=NA20190524_1890,szDeviceType=PU,szManufacturer=smartvideo
I/System.out: bOpenCVManager=0,bFaceDetection=0,bFaceRecognition=0,bFaceRecognitionList=0,iFaceSize=80,iFaceDetectRate=4,iFaceMatchThrd=600
reply agree Against

使用道具 report

QQ|wireless surveillance

GMT+8, 2024-12-22 23:07 , Processed in 0.056643 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList