mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12
backToList newPost
Owner: tangyuyang
打印 prevThread nextThread

安卓MCU登录认证失败

[copyURL]

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
5#
 Owner| poston 2020-2-23 14:53 | authorOnly
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
ground
 Owner| poston 2020-2-23 14:53 | authorOnly
我下载了贵司提供的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

60

主题

1417

帖子

5825

积分

Moderator

Rank: 7Rank: 7Rank: 7

积分
5825
bench
poston 2020-2-22 11:28 | authorOnly
哦,这个代码有些陈旧了。
我们给您我们底层的代码吧,叫BVCUSDK,这个跟我们以前给您的代码的区别在于,这个是一个一个的功能模块DEMO,不是完整的APK代码。
但您需要的MCU的功能,就是取流-解码-显示的功能,这个BVCUSDK里面都有相应的DEMO。
BVCUSDK github 地址:

不过,有一个细节,我们的MCU设计是不要认证的,只有MPU部分才需要认证,就是说登录的时候不要勾选UA,就不需要认证。
您可以再试试。

reply agree Against

使用道具 report

8

主题

38

帖子

154

积分

member

Rank: 2

积分
154
sofa
 Owner| poston 2020-2-22 10:47 | authorOnly
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

12
backToList newPost

QQ|wireless surveillance

GMT+8, 2024-5-18 20:58 , Processed in 0.059572 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList