mobile CCTV,mobile surveillance,police body worn cameras

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

关于bvcsp 集群对接

[copyURL]

11

主题

203

帖子

935

积分

advMem

Rank: 4

积分
935
jumpTo
owner
poston 2021-1-22 15:47 | authorOnly 回帖奖励 |viewing |阅读模式


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

本帖子中包含更多资源

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

x
reply

使用道具 report

0

主题

20

帖子

80

积分

member

Rank: 2

积分
80
12#
poston 2021-1-26 16:54 | authorOnly
yzkj post on2021-1-26 16:46
我发送的命令是要查询群组列表,
1、iDataCount 这个值返回的363,表示的是什么意思?
2、群组名称存储 ...

BVCU_SUBMETHOD_CONF_LIST = 0x01600,//获取集群列表。输入类型:无;输出类型:BVCU_Conf_BaseInfo数组
//BVCU_Command.iTargetIndex:0-查询所有集群列表;1-查询自己所在集群列表;2-查询自己不在的集群列表;3-查询有管理权限的集群列表。

iDataCount 就是数组大小,
//集群基本信息
typedef struct _BVCU_Conf_BaseInfo{
    char szName[BVCU_MAX_NAME_LEN+1];//名字。必须设置为非空。
    char szID[BVCU_MAX_ID_LEN+1];//集群ID。Create时保持为空,返回CMS设置的ID;其他命令必须设置
    int  iMode;//BVCU_CONF_MODE_*。必须设置
    char szPassword[BVCU_MAX_PASSWORD_LEN+1];//密码,仅对BVCU_CONF_NODE_JOIN_PASSWORD和BVCU_SUBMETHOD_CONF_CREATE命令有意义,其他情况设置为空
    int  iConfStatus;//语音会议状态,BVCU_CONF_STATUS_*,只读
    int  iTimeOut;   //多长时间没有发言者,服务器自动删除集群。单位:秒。<= 0表示没有超时限制。创建集群时填写后不允许修改。
    int  iRecordStatus;//平台对会议录音状态,0:不在录音;1:在录音。只读
    char szRecordNRUID[BVCU_MAX_ID_LEN + 1]; // 对会议录音的NRU ID,需要录音时设置,空:表示取消平台录音。
}BVCU_Conf_BaseInfo;

szName:保存群组名称
reply agree Against

使用道具 report

0

主题

5

帖子

24

积分

newBie

Rank: 1

积分
24
11#
poston 2021-1-26 16:46 | authorOnly
zhangjun post on2021-1-26 16:32
void puRequestGroupList()
{
        printf("***********************puRequestGroupList*********** ...

我发送的命令是要查询群组列表,
1、iDataCount 这个值返回的363,表示的是什么意思?
2、群组名称存储在那个字段?编码格式是什么?
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

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

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

可以加你联系方式,直接沟通吗?这样效率太低了
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
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
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

QQ|wireless surveillance

GMT+8, 2024-9-28 05:16 , Processed in 0.065425 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList