mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: tangyuyang
打印 prevThread nextThread

安卓MCU登录认证失败

[copyURL]

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
jumpTo
owner
poston 2020-2-22 10:47 | 显示全部楼层 回帖奖励 |倒序浏览 |阅读模式
运行MainService服务后,我在登录界面把serverParam.szServerAddrserverParam.iServerPort
serverParam.szUserName
serverParam.szPassword
serverParam.szUserAgent 这些值写死然后 mcu.getConnection().login(serverParam, mcu.getBvpuServerParam());我检查了几遍发现没少什么步骤,token返回的是-65522请问还需要做什么步骤呢?麻烦解答一下

reply

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
sofa
 Owner| poston 2020-2-22 10:47 | 显示全部楼层
private void initAction(){
        mcu = (MCUApplication) this.getApplication();
        serverParam = new BVCU_ServerParam();
        serverParam.szServerAddr = "我司服务器IP";
        serverParam.iServerPort = Integer.parseInt("9701");
        serverParam.szUserName = "我司账号";
        serverParam.szPassword = "我司密码";
        serverParam.szUserAgent = BVCU_ServerParam.MONITOR;
        PULoginConfig.getInstance(MainActivity.this).setCuClientID(serverParam);// 设置szClientID
        mcu.setBvpuServerParam(PULoginConfig.getInstance(MainActivity.this).getPUServerParam(serverParam));
        int token = mcu.getConnection().login(serverParam, mcu.getBvpuServerParam());
        mcu.getMcuShareDate().setHandMovementLogout(false);
    }
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
bench
 Owner| poston 2020-2-23 14:53 | 显示全部楼层
我下载了贵司提供的BVCUSDK并登录成功,现在我copy登录部分的代码进行登录,可还是返回 -65522 ,下面是打印的log:
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: ----------------->PostMessageToNative LOGIN
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: ----------------->S_ID -> LOGIN
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: ----------------->I_RESULT -> 1
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: <-----------------PostMessageToNative
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: 2020-02-23_14:49:15.794725 <FAIL> RefObject [0xffc508c4] destroyed with count=2
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/tyy: loginStatus:-65522
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
ground
 Owner| poston 2020-2-23 14:53 | 显示全部楼层
besovideo post on2020-2-22 11:28
哦,这个代码有些陈旧了。
我们给您我们底层的代码吧,叫BVCUSDK,这个跟我们以前给您的代码的区别在于, ...


我下载了贵司提供的BVCUSDK并登录成功,现在我copy登录部分的代码进行登录,可还是返回 -65522 ,下面是打印的log:
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: ----------------->PostMessageToNative LOGIN
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: ----------------->S_ID -> LOGIN
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: ----------------->I_RESULT -> 1
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: <-----------------PostMessageToNative
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/CoreSDK: 2020-02-23_14:49:15.794725 <FAIL> RefObject [0xffc508c4] destroyed with count=2
2020-02-23 14:49:15.794 20396-20396/com.hntyy.myapplication I/tyy: loginStatus:-65522
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
5#
 Owner| poston 2020-2-23 15:21 | 显示全部楼层
BVCU.getSDK().init(getApplicationContext());
doAuth();
login("我司IP",9701,"我司账号","我司密码");
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
6#
 Owner| poston 2020-2-24 14:22 | 显示全部楼层
wanzongyong post on2020-2-24 09:35
-65522是认证失败的错误码,请确认是否已认证成功。可在调用认证方法前设置认证回调,查看认证情况。BVCU ...

AuthEventCallback------iAuthResult=1024,authKeyStatus=16,iCertType=65537,iToken=48974,szSerialNumber=term_571a85b8463d95c235e26638fff73430,iAuthAvailableKeyCount=-1
如上log所示,authResult是1024,认真成功的啊
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
7#
 Owner| poston 2020-2-24 14:23 | 显示全部楼层
wanzongyong post on2020-2-24 10:06
你好,后续开发过程中遇到问题请到Github Issues模块中添加新的issue

哦好的,请问可以给个准确的链接吗?
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
8#
 Owner| poston 2020-2-24 14:41 | 显示全部楼层
besovideo post on2020-2-24 14:31
我们销售应该给过你们了。

好的,那我有后续问题在GitHub上发新的Issues在上面
reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
9#
 Owner| poston 2020-2-24 14:56 | 显示全部楼层
tangyuyang post on2020-2-24 14:41
好的,那我有后续问题在GitHub上发新的Issues在上面

已发,情麻烦看一下谢谢
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-5 23:04 , Processed in 0.063472 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList