mobile CCTV,mobile surveillance,police body worn cameras

 forgetPW
 registerNow
search
Owner: fanghj90
打印 prevThread nextThread

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

 关闭 [copyURL]

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
owner
poston 2019-6-5 14:13 | 显示全部楼层
登录后获取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

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
sofa
poston 2019-6-11 11:23 | 显示全部楼层
admin post on2019-6-5 17:28
你是要获取历史轨迹文件吗?

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

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
bench
poston 2019-6-11 13:55 | 显示全部楼层
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
ground
poston 2019-6-12 14:17 | 显示全部楼层
如果频繁刷新浏览器会经常遇到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
5#
poston 2019-6-12 14:30 | 显示全部楼层
还会遇到这样的错误:SCRIPT12030: WebSocket Error: Network Error 12030, 与服务器的连接意外终止     http websoket error[object Event],这个又是什么导致的呢,隔三差五就会出现
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
6#
poston 2019-6-12 16:21 | 显示全部楼层
taoyane post on2019-6-12 15:55
您好,导致这个问题的原因,是由于(IE)浏览器自带的websocket的限制(Chrome没有这个限制),我们也做 ...

我查了下IE对websocket链接数有限制,插件版是不是装上插件后这样启用呢?
  1. window.onload = function () {
  2.             jSW.swInit({
  3.                 bocxws:true,
  4.                 url: "http://192.168.6.114:8081", // bv_nginx.exe服务器地址
  5.                 calltype: jSW.CallProtoType.OCX, // AUTO: IE优先使用OCX, 如果希望IE仍然使用HTTP通信, 请使用jSW.CallProtoType.HTTP
  6.             });
  7.         }
  8.         window.onbeforeunload = function () {
  9.             jSW.swDeInit();
  10.         }
copycode
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
7#
poston 2019-6-12 17:43 | 显示全部楼层
fanghj90 post on2019-6-12 15:48
是ocx方式吗?使用的webapi是哪个版本?

是OCX方式,api是最新版本的
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
8#
poston 2019-6-12 17:52 | 显示全部楼层
taoyane post on2019-6-12 17:45
JSW初始化调用OCX方式的websocket是这样的:

好的,那插件实在网盘里吗?我没找到....
reply agree Against

使用道具 report

0

主题

9

帖子

28

积分

newBie

Rank: 1

积分
28
9#
poston 2019-6-12 18:05 | 显示全部楼层
admin post on2019-6-12 17:57
WEB SDK, 在网盘 smarteye_server ---> server_plugin ---> WEB_API目录下,webAPI_nginx_2019_mmdd_hhmm. ...

这个不是服务器端的服务吗?ControlCenter控制中心,怎么是webSocket的插件版呢?
reply agree Against

使用道具 report

creditRule

QQ|wireless surveillance

GMT+8, 2024-5-19 02:20 , Processed in 0.061523 second(s), 18 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

QuickReply backToTop BackToList