mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
view: 1978|reply: 18
打印 prevThread nextThread

gps问题

[copyURL]

0

主题

9

帖子

102

积分

member

Rank: 2

积分
102
owner
poston 2020-5-12 18:23 | 显示全部楼层
有两种方法可以获取设备的GPS数据:

1、打开设备的GPS通道(源源不断的获取数据)。

2、发送获取设备的GPS通道数据的查询命令(一次只能获取一条数据)。
命令发送:

命令类型:BVCU_SUBMETHOD_PU_GPSDATA
命令负载:
LIBBVCU_API BVCU_Result BVCU_SendCmd(BVCU_HSession hSession, BVCU_Command* pCommand);
reply agree Against

使用道具 report

0

主题

9

帖子

102

积分

member

Rank: 2

积分
102
sofa
poston 2020-5-12 19:37 | 显示全部楼层
abc post on2020-5-12 18:36
我说的这种需求:是不是在登录事件时,再发送命令进行查询才能获取到?

你说的“登录事件”指的是“设备上线”吗?
reply agree Against

使用道具 report

0

主题

9

帖子

102

积分

member

Rank: 2

积分
102
bench
poston 2020-5-13 10:39 | 显示全部楼层
abc post on2020-5-12 20:56
命令类型:BVCU_SUBMETHOD_PU_GPSDATA
命令负载:
LIBBVCU_API BVCU_Result BVCU_SendCmd(BVCU_HSession  ...

参考WinformDemo项目下 ManagedLayer中间层的代码,添加一个获取设备GPS数据的接口供C#层调用。
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-2 22:04 , Processed in 0.053713 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList