mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
12
backToList newPost
Owner: huh

认证问题

[copyURL]

5

主题

20

帖子

77

积分

member

Rank: 2

积分
77
 Owner| poston 2020-9-3 17:28 | 显示全部楼层
chenmingzhi post on2020-9-3 16:44
不要为空, 尽量都填上有意义的值。

        /**  开发者app key 密钥,需要向我司销售申请,这里这个key用于测试。
        type: PU
        app_id: app_7c5f1f420ae4431b
        rsa_n(hex): ad6645c5dcd9bb398716ea193411c5d7
        rsa_e(hex): 93487bd8b721095f
        */
        //const char* app_id = "app_xxxxxxxxxxxxxxxx";
        //const char* n = "94ab94e08d971e72a36f48841d66a151";
        //const char* e = "e942cfb03769cbd3";
        const char *app_id = "app_1ab2d9eddb962356";
        const char *n = "80b24d479df34aa792658dcfb534d6bb";
        const char *e = "81dcfc6d5a67ea05";


这个开发者账号麻烦给我们一个,谢谢哈
reply agree Against

使用道具 report

5

主题

20

帖子

77

积分

member

Rank: 2

积分
77
 Owner| poston 2020-9-3 17:31 | 显示全部楼层
        /**  开发者app key 密钥,需要向我司销售申请,这里这个key用于测试。
        type: PU
        app_id: app_7c5f1f420ae4431b
        rsa_n(hex): ad6645c5dcd9bb398716ea193411c5d7
        rsa_e(hex): 93487bd8b721095f
        */
        //const char* app_id = "app_xxxxxxxxxxxxxxxx";
        //const char* n = "94ab94e08d971e72a36f48841d66a151";
        //const char* e = "e942cfb03769cbd3";
        const char *app_id = "app_1ab2d9eddb962356";
        const char *n = "80b24d479df34aa792658dcfb534d6bb";
        const char *e = "81dcfc6d5a67ea05";

开发者账号麻烦提供一个,谢谢哈
reply agree Against

使用道具 report

11

主题

199

帖子

921

积分

advMem

Rank: 4

积分
921
poston 2020-9-3 18:08 | 显示全部楼层
您好,我司销售已经与您联系过了,请查收开发者账号信息
reply agree Against

使用道具 report

5

主题

20

帖子

77

积分

member

Rank: 2

积分
77
 Owner| poston 2020-9-4 15:58 | 显示全部楼层
        char data[256];
        int data_len = 0;
        char base64[512];
        int base64_len;

        char encrypt[512];
        int encrypt_len = 0;

        data_len = sizeof(data);
        memset(data, 0, sizeof(data));

        encrypt_len = sizeof(encrypt);
        memset(encrypt, 0, sizeof(encrypt));

        base64_len = sizeof(base64);
        memset(base64, 0, sizeof(base64));

        // 获取需要字符串
        BVCSP_GetEncryptedData(data, &data_len);
        // Base64(RSA(data))
        BVCU_Result bvresult = BVCSP_EncryptData((char *)n, (char *)e, data, data_len, encrypt, &encrypt_len);
        if (BVCU_Result_SUCCEEDED(bvresult))
        {
            base64_len = base64_encode((const unsigned char*)encrypt, encrypt_len, base64);

            strcpy(param.appInfo.appId, app_id);
            param.appInfo.ciph_data = base64;
            param.appInfo.ciph_len = strlen(base64);
        } else {
            printf( "BVCSP_EncryptData return %d\n", bvresult );
        }
    }
    BVCSP_Auth(&param);

如上认证时,在接口BVCSP_EncryptData经常会返回失败,错误提示如下:
BVCSP_EncryptData return -65536
[E] [09-04 15:58:22] [bvr_auth:0246] no appInfo.appId
ThreadNetwork.cpp, line 502, function CBVCSPThreadNetwork::Auth, auth error=-2
, 2020-09-04 15:58:22

ThreadNetwork.cpp, line 502, function CBVCSPThreadNetwork::Auth, auth error=-2
, 2020-09-04 15:58:22
BVCSP_Login: -65522
reply agree Against

使用道具 report

11

主题

199

帖子

921

积分

advMem

Rank: 4

积分
921
poston 2020-9-4 16:22 | 显示全部楼层
请检查BVCSP_GetEncryptedData返回的值是多少
reply agree Against

使用道具 report

5

主题

20

帖子

77

积分

member

Rank: 2

积分
77
 Owner| poston 2020-9-4 16:47 | 显示全部楼层
jsb post on2020-9-4 16:22
请检查BVCSP_GetEncryptedData返回的值是多少

-65532      
reply agree Against

使用道具 report

5

主题

20

帖子

77

积分

member

Rank: 2

积分
77
 Owner| poston 2020-9-9 14:01 | 显示全部楼层
经常出现BVCSP_Auth返回0,但认证回调函数没被触发的情况,是什么原因呢?
reply agree Against

使用道具 report

12
backToList newPost

creditRule

QQ|wireless surveillance

GMT+8, 2024-4-16 17:05 , Processed in 0.059566 second(s), 17 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList