mobile CCTV,mobile surveillance,police body worn cameras

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

关于bvcsp 集群对接

[copyURL]

11

主题

201

帖子

929

积分

advMem

Rank: 4

积分
929
jumpTo
owner
poston 2021-1-22 15:47 | authorOnly 回帖奖励 |倒序浏览 |阅读模式


获取群组列表中,这些信息如何填写

本帖子中包含更多资源

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

x
reply

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
sofa
poston 2021-1-22 15:54 | authorOnly
pUserData 是用户自定义数据,回调函数中会传出来,可以为空
iMethod:BVCU_METHOD_QUERY
iTargetIndex:0-查询所有集群列表;1-查询自己所在集群列表;2-查询自己不在的集群列表;3-查询有管理权限的集群列表。
stMsgContent:不用填,BVCU_SUBMETHOD_CONF_LIST命令,输入类型:无
reply agree Against

使用道具 report

0

主题

5

帖子

24

积分

newBie

Rank: 1

积分
24
bench
poston 2021-1-25 14:50 | authorOnly
zhangjun post on2021-1-22 15:54
pUserData 是用户自定义数据,回调函数中会传出来,可以为空
iMethod:BVCU_METHOD_QUERY
iTargetIndex: ...

void puRequestGroupList()
{
        printf("***********************puRequestGroupList*****************************\n");
        BVCSP_Command pCommand;
        pCommand.iSize = sizeof(BVCSP_Command);
        pCommand.iMethod = BVCU_METHOD_QUERY;
        pCommand.iTargetIndex = 0;
        pCommand.iSubMethod = BVCU_SUBMETHOD_CONF_LIST;
        pCommand.OnEvent = OnRequestGroupCallBack;
        BVCSP_SendCmd(g_hSession, &pCommand);
}

我这个写法有问题?没有看到回调信息
reply agree Against

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
ground
poston 2021-1-26 10:12 | authorOnly
yzkj post on2021-1-25 14:50
void puRequestGroupList()
{
        printf("***********************puRequestGroupList****************** ...

pCommand 用memset 清空,打印一下BVCSP_SendCmd的返回值
reply agree Against

使用道具 report

0

主题

5

帖子

24

积分

newBie

Rank: 1

积分
24
5#
poston 2021-1-26 15:37 | authorOnly
zhangjun post on2021-1-26 10:12
pCommand 用memset 清空,打印一下BVCSP_SendCmd的返回值

返回值为BVCU_RESULT_E_INVALIDARG
reply agree Against

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
6#
poston 2021-1-26 15:59 | authorOnly
yzkj post on2021-1-26 15:37
返回值为BVCU_RESULT_E_INVALIDARG

参数有错,检查参数g_hSession是否正确,以及pCommand赋值之前是否清空
reply agree Against

使用道具 report

0

主题

5

帖子

24

积分

newBie

Rank: 1

积分
24
7#
poston 2021-1-26 16:02 | authorOnly
zhangjun post on2021-1-26 15:59
参数有错,检查参数g_hSession是否正确,以及pCommand赋值之前是否清空

可以加你联系方式,直接沟通吗?这样效率太低了
reply agree Against

使用道具 report

1

主题

383

帖子

1466

积分

vipMem

Rank: 6Rank: 6

积分
1466
8#
poston 2021-1-26 16:06 | authorOnly
yzkj post on2021-1-26 16:02
可以加你联系方式,直接沟通吗?这样效率太低了

您可以加技术人员的微信 会第一时间通知您   18949844172
reply agree Against

使用道具 report

0

主题

5

帖子

24

积分

newBie

Rank: 1

积分
24
9#
poston 2021-1-26 16:24 | authorOnly
bai_315 post on2021-1-26 16:06
您可以加技术人员的微信 会第一时间通知您   18949844172

我现在想获取一下群组的列表,这是我的代码,麻烦帮忙看一下,或者是你提供一下示例给我也行。
void OnRequestGroupCallBack(BVCSP_HSession hSession, BVCSP_Command* pCommand, BVCSP_Event_SessionCmd* pParam)
{
        printf("********************iDataCount[%d]*********************\n", pParam->stContent.iDataCount);
}


void puRequestGroupList()
{
        printf("***********************puRequestGroupList*****************************\n");
        BVCSP_Command pCommand;
        pCommand.iSize = sizeof(BVCSP_Command);
        pCommand.iMethod = BVCU_METHOD_QUERY;
        pCommand.iTargetIndex = 0;
        pCommand.iSubMethod = BVCU_SUBMETHOD_CONF_LIST;
        pCommand.OnEvent = OnRequestGroupCallBack;
        int ret = BVCSP_SendCmd(g_hSession, &pCommand);
        printf("BVCSP_SendCmd ret[%0X] BVCU_RESULT_E_INVALIDARG[%0X]\n", ret, BVCU_RESULT_E_INVALIDARG);
}


void OnEvent(BVCSP_HSession hSession, int iEventCode, void* pParam)
{
    int iResult = (intptr_t )(pParam);
    printf("session event hSession:%p iEventCode:%d result:%0X \n", hSession, iEventCode, iResult);
    if (BVCSP_EVENT_SESSION_OPEN == iEventCode && iResult == BVCU_RESULT_S_OK)
    {  // 登录成功,注册解码器信息。
            printf("***********************login success*******************************\n");
                puRequestGroupList();
    }
        else if(BVCSP_EVENT_SESSION_OPEN == iEventCode && iResult == BVCU_RESULT_E_AUTHORIZE_FAILED)
        {
                printf("***********************authorize failed*******************************\n");
        }
    else
        g_hSession = NULL;
}
reply agree Against

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
10#
poston 2021-1-26 16:32 | authorOnly
yzkj post on2021-1-26 16:24
我现在想获取一下群组的列表,这是我的代码,麻烦帮忙看一下,或者是你提供一下示例给我也行。
void OnR ...

void puRequestGroupList()
{
        printf("***********************puRequestGroupList*****************************\n");
        BVCSP_Command pCommand;
        memset(&pCommand, 0, sizeof(pCommand));     // 清空结构体,不然会有垃圾数据
        pCommand.iSize = sizeof(BVCSP_Command);
        pCommand.iMethod = BVCU_METHOD_QUERY;
        pCommand.iTargetIndex = 0;
        pCommand.iSubMethod = BVCU_SUBMETHOD_CONF_LIST;
        pCommand.OnEvent = OnRequestGroupCallBack;
        int ret = BVCSP_SendCmd(g_hSession, &pCommand);
        printf("BVCSP_SendCmd ret[%0X] BVCU_RESULT_E_INVALIDARG[%0X]\n", ret, BVCU_RESULT_E_INVALIDARG);
}
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-19 00:03 , Processed in 0.064456 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList