mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 2315|reply: 15
打印 prevThread nextThread

设备和用户上下线通知消息区分的问题

[copyURL]

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
owner
poston 2021-4-28 16:50 | 显示全部楼层
puChannelInfo转BVCU_PUChannelInfo类型后可查看设备状态
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
sofa
poston 2021-4-29 16:56 | 显示全部楼层
你试试BVCSP_NotifyMsgContent的iSubMethod变量能否分别消息类型
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
bench
poston 2021-4-29 17:31 | 显示全部楼层
由iSubMethod确定stMsgContent.pData的类型,这里面应该有上下线的信息
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
ground
poston 2021-4-30 09:35 | 显示全部楼层
ZTO post on2021-4-29 20:37
就是因为上下线返回的iSubMethod是一样的,所以现在才判断不出来,pData要转成什么格式的数据?

iSubMethod是多少?
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
5#
poston 2021-4-30 09:55 | 显示全部楼层
ZTO post on2021-4-30 09:50
196609,对应头文件里的BVCU_SUBMETHOD_EVENT_NOTIFY

BVCU_Event_Source类型试试?
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
6#
poston 2021-4-30 10:36 | 显示全部楼层
BVCU_Event_Source.iEventType可以用来分别上下线消息,0x1005上线,0x1006下线,你试试看。
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
7#
poston 2021-4-30 12:01 | 显示全部楼层
应该是你上层代码有问题吧,OnNotify又被调用吗?你是开发C#还是C++?
reply agree Against

使用道具 report

0

主题

23

帖子

70

积分

member

Rank: 2

积分
70
8#
poston 2021-4-30 14:17 | 显示全部楼层
ZTO post on2021-4-30 14:07
java调用的dll,只是奇怪,同样的回调函数,登录的就有返回,通知的有时就没有

java调用我不太清楚,这边都是C++、C#的开发,没有遇到你说的这样的问题,所以应该不是库的问题。
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-18 14:46 , Processed in 0.053713 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList