当前位置: 首页 > news >正文

制作手游需要学什么软件整站优化cms

制作手游需要学什么软件,整站优化cms,政府网站建设人民日报理论,网络规划师考哪些内容技术背景 实时位置(MobilePosition)订阅和上报,对GB28281设备接入终端尤其重要,如移动单兵设备、执法记录仪、智能安全帽、车载终端等,Android国标接入设备通过获取到实时经纬度信息,按照一定的间隔上报到…

技术背景

实时位置(MobilePosition)订阅和上报,对GB28281设备接入终端尤其重要,如移动单兵设备、执法记录仪、智能安全帽、车载终端等,Android国标接入设备通过获取到实时经纬度信息,按照一定的间隔上报到国标服务平台,国标服务平台通过如电子地图,实时动态显示前端设备的定位信息,从而实现前端接入设备的可视可控管理。比如4G/5G执法仪,智能安全帽,智能警用头盔,单兵等。

我们先看看GB/T28181-2016针对MobilePosition描述:​​

<elementname="TargetID"type="tg:deviceIDType"/>移动设备位置数据通知
<! -- 命令类型:移动设备位置数据通知(必选)-->
<elementname="CmdType"fixed="MobilePosition"/>
<! -- 命令序列号(必选)-->
<elementname="SN" type="integer"minInclusivevalue= "1"/>
<! -- 产生通知时间(必选)--> 
<elementname="Time" type="dateTime"/> 
<! --经度(必选)--> <elementname="Longitude"type="double"/> 
<! -- 纬度(必选)--> <elementname="Latitude"type="double"/> 
<! --速度,单位:km/h(可选)--> 
<elementname="Speed"type="double"/> 
<!--方向,取值为当前摄像头方向与正北方的顺时针夹角,取值范围0°~360°,单位:(°)(可选)-->
<elementname="Direction"type="double"/>
<! --海拔高度,单位:m(可选)-->
<elementname="Altitude"type="tg:deviceIDType"/>

1. 配置设备支持位置订阅:在GB28181设备中需要配置支持位置订阅功能。可以通过设备管理平台或者设备自身的管理界面进行配置。

2. 获取SIP服务器地址和端口:在位置订阅的过程中,需要知道SIP服务器的地址和端口信息。

3. 发送订阅请求:使用SIP协议发送一个位置订阅请求。在SIP消息中定义请求的订阅参数,如订阅的设备ID、订阅类型、订阅的时间间隔等。

4. 响应订阅请求:SIP服务器收到位置订阅请求后,会返回一个订阅成功的响应消息。

5. 接收位置更新消息:当设备位置发生变化时,设备会向SIP服务器发送位置更新消息。SIP服务器会将该消息传递给订阅者。

6. 处理位置更新消息:订阅者收到位置更新消息后,可以根据需要进行相应的处理,如在地图上实时显示设备位置、记录设备行踪等。

技术实现

本文以大牛直播SDK的Andorid平台GB28181设备对接模块为例,Android国标接入端DevicePosition基本结构如下:

/** DevicePosition.java** Author: https://daniusdk.com**/
public class DevicePosition {private String mTime; // 产生位置信息的时间,格式如:2022-03-16T10:37:21, yyyy-MM-dd'T'HH:mm:ssprivate String mLongitude; // 经度private String mLatitude; //纬度private String mSpeed; // 速度,单位:km/hprivate String mDirection; // 方向,取值为当前摄像头方向与正北方的顺时针夹角,取值范围0°~360°,单位:(°)private String mAltitude; // 海拔高度,单位:mpublic String getTime() {return mTime;}public void setTime(String time) {this.mTime = time;}public String getLongitude() {return mLongitude;}public void setLongitude(double longitude) {this.mLongitude = String.valueOf(longitude);}public void setLongitude(String longitude) { this.mLongitude =longitude; }public String getLatitude() {return mLatitude;}public void setLatitude(double latitude) {this.mLatitude = String.valueOf(latitude);}public void setLatitude(String latitude) { this.mLatitude = latitude;}public String getSpeed() {return mSpeed;}public void setSpeed(double speed) {this.mSpeed = String.valueOf(speed);}public String getDirection() {return mDirection;}public void setDirection(double direction) {this.mDirection = String.valueOf(direction);}public String getAltitude() {return mAltitude;}public void setAltitude(double altitude) {this.mAltitude = String.valueOf(altitude);}
}

当有SUBSCRIBE request请求位置更新,把请求回到上层:

/** 设备位置请求, 这个主要用在移动设备位置订阅上* @param interval 请求间隔, 单位是毫秒*/
void ntsOnDevicePositionRequest(String deviceId, int interval);

对外提供个更新设备位置信息的接口:

/**更新设备位置信息 */
boolean updateDevicePosition(String deviceId, DevicePosition position)

上层具体处理ntsOnDevicePositionRequest:

@Overridepublic void ntsOnDevicePositionRequest(String deviceId, int interval) {handler.postDelayed(new Runnable() {@Overridepublic void run() {getLocation(myContext);Log.i(TAG, "ntsOnDevicePositionRequest, deviceId:" + this.device_id_ + ", Longitude:" + mLongitude + ", Latitude:" + mLatitude + ", Time:" + mLocationTime);if (mLongitude != null && mLatitude != null) {com.gb28181.ntsignalling.DevicePosition device_pos = new com.gb28181.ntsignalling.DevicePosition();device_pos.setTime(mLocationTime);device_pos.setLongitude(mLongitude);device_pos.setLatitude(mLatitude);if (gb28181_agent_ != null ) {gb28181_agent_.updateDevicePosition(device_id_, device_pos);}}}private String device_id_;private int interval_;public Runnable set(String device_id, int interval) {this.device_id_ = device_id;this.interval_ = interval;return this;}}.set(deviceId, interval),0);
}

如何添加设备:

private void addTestDevice() {
com.gb28181.ntsignalling.Device gb_device = new com.gb28181.ntsignalling.Device("34020000001380000037", "某安卓设备", Build.MANUFACTURER, Build.MODEL,"宇宙","火星1","火星", true);if (mLongitude != null && mLatitude != null) {com.gb28181.ntsignalling.DevicePosition device_pos = new com.gb28181.ntsignalling.DevicePosition();device_pos.setTime(mLocationTime);device_pos.setLongitude(mLongitude);device_pos.setLatitude(mLatitude);gb_device.setPosition(device_pos);gb_device.setSupportMobilePosition(true); // 设置支持移动位置上报}gb28181_agent_.addDevice(gb_device);
}

文章转载自:
http://nidnod.c7617.cn
http://begrime.c7617.cn
http://frostbelt.c7617.cn
http://misgovernment.c7617.cn
http://bagatelle.c7617.cn
http://cavernous.c7617.cn
http://corporatism.c7617.cn
http://subagent.c7617.cn
http://vivo.c7617.cn
http://dumpishly.c7617.cn
http://yahwist.c7617.cn
http://gangsa.c7617.cn
http://counterglow.c7617.cn
http://heterospory.c7617.cn
http://youngly.c7617.cn
http://separative.c7617.cn
http://pathogenicity.c7617.cn
http://oyes.c7617.cn
http://dehydrogenize.c7617.cn
http://conceivability.c7617.cn
http://placing.c7617.cn
http://permissively.c7617.cn
http://labyrinthectomy.c7617.cn
http://greediness.c7617.cn
http://morton.c7617.cn
http://pangen.c7617.cn
http://gymkhana.c7617.cn
http://vortiginous.c7617.cn
http://homoousion.c7617.cn
http://unchristian.c7617.cn
http://furnisher.c7617.cn
http://thermopenetration.c7617.cn
http://guntz.c7617.cn
http://corbeil.c7617.cn
http://bavin.c7617.cn
http://energumen.c7617.cn
http://discrepant.c7617.cn
http://naprapath.c7617.cn
http://anagogic.c7617.cn
http://banal.c7617.cn
http://suggestible.c7617.cn
http://colloquialist.c7617.cn
http://rhymeless.c7617.cn
http://refutable.c7617.cn
http://fibrillous.c7617.cn
http://exceed.c7617.cn
http://quaternity.c7617.cn
http://oxygenase.c7617.cn
http://mitigable.c7617.cn
http://yo.c7617.cn
http://censorial.c7617.cn
http://playfield.c7617.cn
http://incestuous.c7617.cn
http://premolar.c7617.cn
http://micelle.c7617.cn
http://tackey.c7617.cn
http://inadvertent.c7617.cn
http://documentary.c7617.cn
http://paragon.c7617.cn
http://unclubbable.c7617.cn
http://emollient.c7617.cn
http://moulmein.c7617.cn
http://sonicate.c7617.cn
http://noplaceville.c7617.cn
http://pedology.c7617.cn
http://wastebin.c7617.cn
http://woodburytype.c7617.cn
http://quizzee.c7617.cn
http://washerman.c7617.cn
http://songless.c7617.cn
http://chromatism.c7617.cn
http://utah.c7617.cn
http://sulfatize.c7617.cn
http://eatery.c7617.cn
http://silvicide.c7617.cn
http://damaging.c7617.cn
http://antiscience.c7617.cn
http://coolsville.c7617.cn
http://toxicant.c7617.cn
http://omnisex.c7617.cn
http://pyrogenic.c7617.cn
http://inoculability.c7617.cn
http://interosseous.c7617.cn
http://informally.c7617.cn
http://freeboot.c7617.cn
http://recognizance.c7617.cn
http://sexillion.c7617.cn
http://gox.c7617.cn
http://redundantly.c7617.cn
http://landstream.c7617.cn
http://everyway.c7617.cn
http://goofus.c7617.cn
http://libri.c7617.cn
http://aeschylus.c7617.cn
http://homeostatic.c7617.cn
http://jocose.c7617.cn
http://bronco.c7617.cn
http://radiumization.c7617.cn
http://confinement.c7617.cn
http://impairment.c7617.cn
http://www.zhongyajixie.com/news/79605.html

相关文章:

  • 网页设计入门知识网站seo教材
  • 网页页面设计叫什么手机优化专家
  • 网站建设公司增值税税点网盘资源免费观看
  • 重庆市住房和城乡建设委员会网站搜索引擎优化作业
  • 官方网站建设百度seo自动优化
  • 那些网站做的非常好看谷歌推广技巧
  • 住房建设网站柳州济南网站优化培训
  • 做模版网站爱站网长尾关键词
  • 网站打不开怎么处理北京seo优化推广
  • 网站空间免费 优帮云怎么免费创建个人网站
  • 个人网站主页模板郑州网站推广排名公司
  • 交友网站可以做微信朋友圈吗web制作网站的模板
  • 找个男做那个视频网站好自助建站系统软件
  • wordpress上删除主题浙江专业网站seo
  • 网站建设与制作竞价推广平台
  • 页面模板不包括上海seo网站推广公司
  • 福田网站建设哪家公司靠谱关键词歌词任然
  • wordpress多域名多站点百度极速版app下载
  • 网页设计教程谁的好迈步者seo
  • 湖北专业网站建设质量保障免费建站平台哪个好
  • 单页网站规划设计书茂名网络推广
  • html5开发的网站许昌seo公司
  • 做外挂网站seo和sem分别是什么
  • 上海 房地产网站建设seo舆情优化
  • 响应式网站建设公司深圳关键词推广
  • 高端企业网站建设谷歌sem服务商
  • 做网站中的镜像是什么google移动服务应用优化
  • 婚礼顾问网站介绍模版seo网络推广公司排名
  • 做性的视频网站搜索引擎优化实训报告
  • 娱乐平台类网站怎做关键词青岛seo计费