mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: fanghj90
打印 prevThread nextThread

Web 二次开发支持(请勿回帖,另起新帖)

 关闭 [copyURL]

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
151#
poston 2019-6-5 14:13 | authorOnly
登录后获取GPS实时数据能获取到,但是获取GPS轨迹报错 cmd: searchlist fail RC_CODE_E_BVCU_UNAVAILABLE      internal error: searchlistcmd: searchlist fail RC_CODE_E_BVCU_UNAVAILABLE请问是什么原因呢?
  1. //GPS轨迹       
  2.         function testSearchGpsV2() {
  3.         var itimeBegin = new Date().getTime() / 1000 - 100;
  4.         var itimeEnd = new Date().getTime() / 1000;
  5.         var puid = puId;
  6.         var stSearchInfo = {
  7.             iPostition: 0,
  8.             iCount: 20
  9.         };

  10.         if (session) {
  11.             session.swSearchGpsV2({
  12.                     //szNruId: nruid,
  13.                 stSearchInfo: stSearchInfo,
  14.                 iTimeBegin: itimeBegin,
  15.                 iTimeEnd: itimeEnd,
  16.                 szPuid: puid,
  17.                 callback: function (options, response, data) {
  18.                         console.log("response=>",response)
  19.                         console.log("data=>",data)
  20.                     if (response.emms.code == jSW.RcCode.RC_CODE_S_OK) {
  21.                         if (data.info.iCount > 0) {
  22.                                 console.log("data.content[0]=>>>",data.content[0]);
  23.                             document.getElementById('filepathidv2').value = data.content[0].szFilePath;
  24.                             document.getElementById('nruidv2').value = data.content[0].szSourceID;
  25.                         }
  26.                     }
  27.                 },
  28.                 tag: null
  29.             });
  30.         }
  31.     }
copycode
reply agree Against

使用道具 report

0

主题

22

帖子

88

积分

member

Rank: 2

积分
88
152#
poston 2019-6-5 17:25 | authorOnly
danqizhang post on2019-6-5 14:13
登录后获取GPS实时数据能获取到,但是获取GPS轨迹报错 cmd: searchlist fail RC_CODE_E_BVCU_UNAVAILABLE   ...

查询GPS轨迹需设备在线,若确认设备在线,则可能需要登录你们的服务器查看详细信息
reply agree Against

使用道具 report

10

主题

531

帖子

2437

积分

admin

Rank: 9Rank: 9Rank: 9

积分
2437
153#
poston 2019-6-5 17:28 | authorOnly
你是要获取历史轨迹文件吗?
reply agree 1 Against 0

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
154#
poston 2019-6-11 11:23 | authorOnly
admin post on2019-6-5 17:28
你是要获取历史轨迹文件吗?

已经解决了,我想问下这个历史轨迹文件的坐标系是哪个呢?我看到所有的坐标是把小数点去掉了,这个在生成GPS文件的时候是按照什么规则转的,算法是什么了啊?我怎么才能在高德或者百度地图中显示轨迹图
reply agree Against

使用道具 report

1

主题

580

帖子

2003

积分

vipMem

Rank: 6Rank: 6

积分
2003
155#
 Owner| poston 2019-6-11 11:45 | authorOnly
danqizhang post on2019-6-11 11:23
已经解决了,我想问下这个历史轨迹文件的坐标系是哪个呢?我看到所有的坐标是把小数点去掉了,这个在生成 ...

您好,坐标系是wgs84,小数点去掉了是保留7位小数点转换成整形。算法: x = lat*10000000;  y = lng*10000000;
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
156#
poston 2019-6-11 13:55 | authorOnly
fanghj90 post on2019-6-11 11:45
您好,坐标系是wgs84,小数点去掉了是保留7位小数点转换成整形。算法: x = lat*10000000;  y = lng*1000 ...

好的,谢谢
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
157#
poston 2019-6-12 14:17 | authorOnly
如果频繁刷新浏览器会经常遇到socket链接建立失败的问题,错误码:SCRIPT5022: SecurityError   livereload.js (76,7)行,这是什么原因导致的呢?如果关闭重启浏览器就好了,是不是频繁刷新会通道阻塞呢?我该怎么处理这个问题呢?

  1.         window.onload = function () {
  2.             jSW.swInit({
  3.                 url: "http://192.168.6.114:8081", // bv_nginx.exe服务器地址
  4.                 calltype: jSW.CallProtoType.OCX, // AUTO: IE优先使用OCX, 如果希望IE仍然使用HTTP通信, 请使用jSW.CallProtoType.HTTP
  5.             });
  6.         }
  7.         window.onbeforeunload = function () {
  8.             jSW.swDeInit();
  9.         }
copycode
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
158#
poston 2019-6-12 14:30 | authorOnly
还会遇到这样的错误:SCRIPT12030: WebSocket Error: Network Error 12030, 与服务器的连接意外终止     http websoket error[object Event],这个又是什么导致的呢,隔三差五就会出现
reply agree Against

使用道具 report

1

主题

580

帖子

2003

积分

vipMem

Rank: 6Rank: 6

积分
2003
159#
 Owner| poston 2019-6-12 15:48 | authorOnly
danqizhang post on2019-6-12 14:30
还会遇到这样的错误:SCRIPT12030: WebSocket Error: Network Error 12030, 与服务器的连接意外终止     ht ...

是ocx方式吗?使用的webapi是哪个版本?
reply agree Against

使用道具 report

0

主题

22

帖子

88

积分

member

Rank: 2

积分
88
160#
poston 2019-6-12 15:55 | authorOnly
danqizhang post on2019-6-12 14:17
如果频繁刷新浏览器会经常遇到socket链接建立失败的问题,错误码:SCRIPT5022: SecurityError   livereload ...

您好,导致这个问题的原因,是由于(IE)浏览器自带的websocket的限制(Chrome没有这个限制),我们也做个了插件版本的websocket,提供了js接口。调用方式:JSW初始化的config参数中填入bocxws:true。
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-18 21:56 , Processed in 0.062502 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList