gpt4 book ai didi

android - 从网络摄像机 (Hi3518) 获取警报/事件

转载 作者:可可西里 更新时间:2023-11-01 02:53:29 26 4
gpt4 key购买 nike

我想弄清楚,如何从我的 IP 摄像机获取警报消息,使用 VMS 软件我可以看到数据包,我尝试复制它但没有运气,我不知道每个数据包的第一个字符

wireshark 日志

    ................d...{ "EncryptType" : "MD5", "LoginType" : "DVRIP-Web", "PassWord" : "tlJwpbo6", "UserName" : "admin" }
....................{ "AliveInterval" : 21, "ChannelNum" : 1, "DeviceType " : "IPC", "ExtraChannel" : 0, "Ret" : 100, "SessionID" : "0x00000001" }
.................6...{ "Name" : "SystemInfo", "SessionID" : "0x00000001" }
................Q...{ "Name" : "SystemInfo", "Ret" : 100, "SessionID" : "0x1", "SystemInfo" : { "AlarmInChannel" : 2, "AlarmOutChannel" : 1, "AudioInChannel" : 1, "BuildTime" : "2016-05-11 15:05:45", "CombineSwitch" : 0, "DeviceRunTime" : "0x00000C6A", "DigChannel" : 0, "EncryptVersion" : "Unknown", "ExtraChannel" : 0, "HardWare" : "53H20L_S39", "HardWareVersion" : "Unknown", "SerialNo" : "74a9251dff8a1b12", "SoftWareVersion" : "V4.02.R11.00002532.10010.240100.00000", "TalkInChannel" : 1, "TalkOutChannel" : 1, "UpdataTime" : "", "UpdataType" : "0x00000000", "VideoInChannel" : 1, "VideoOutChannel" : 1 } }
.................[...{ "Name" : "OPTimeSetting", "OPTimeSetting" : "2017-09-13 12:45:02", "SessionID" : "0x1" }
................5...{ "Name" : "KeepAlive", "SessionID" : "0x00000001" }
................:...{ "Name" : "", "Ret" : 100, "SessionID" : "0x00000001" }
.................C...{ "Name" : "KeepAlive", "Ret" : 100, "SessionID" : "0x00000001" }
.................,...{ "Name" : "", "SessionID" : "0x00000001" }
................6...{ "Name" : "SystemInfo", "SessionID" : "0x00000001" }
................:...{ "Name" : "", "Ret" : 100, "SessionID" : "0x00000001" }
.................Q...{ "Name" : "SystemInfo", "Ret" : 100, "SessionID" : "0x1", "SystemInfo" : { "AlarmInChannel" : 2, "AlarmOutChannel" : 1, "AudioInChannel" : 1, "BuildTime" : "2016-05-11 15:05:45", "CombineSwitch" : 0, "DeviceRunTime" : "0x00000C6C", "DigChannel" : 0, "EncryptVersion" : "Unknown", "ExtraChannel" : 0, "HardWare" : "53H20L_S39", "HardWareVersion" : "Unknown", "SerialNo" : "74a9251dff8a1b12", "SoftWareVersion" : "V4.02.R11.00002532.10010.240100.00000", "TalkInChannel" : 1, "TalkOutChannel" : 1, "UpdataTime" : "", "UpdataType" : "0x00000000", "VideoInChannel" : 1, "VideoOutChannel" : 1 } }
...............P.:...{ "Name" : "SystemFunction", "SessionID" : "0x00000001" }
..............Q.e...{ "Name" : "SystemFunction", "Ret" : 100, "SessionID" : "0x00000001", "SystemFunction" : { "AlarmFunction" : { "AlarmConfig" : true, "BlindDetect" : true, "IPCAlarm" : false, "LossDetect" : true, "MotionDetect" : true, "NetAbort" : true, "NetAbortExtend" : true, "NetAlarm" : true, "NetIpConflict" : true, "StorageFailure" : true, "StorageLowSpace" : true, "StorageNotExist" : true, "VideoAnalyze" : false }, "CommFunction" : { "CommRS232" : true, "CommRS485" : true }, "EncodeFunction" : { "CombineStream" : false, "DoubleStream" : true, "IFrameRange" : false, "LowBitRate" : true, "SnapStream" : true, "WaterMark" : false }, "InputMethod" : { "NoSupportChinese" : false }, "MobileDVR" : { "CarPlateSet" : false, "DVRBootType" : false, "DelaySet" : false, "GpsTiming" : false, "StatusExchange" : false }, "NetServerFunction" : { "MACProtocol" : false, "MonitorPlatform" : false, "NATProtocol" : false, "Net3G" : false, "Net4G" : false, "NetARSP" : true, "NetAlarmCenter" : true, "NetAnJuP2P" : false, "NetBaiduCloud" : false, "NetBjlThy" : false, "NetDAS" : true, "NetDDNS" : true, "NetDHCP" : true, "NetDNS" : true, "NetDataLink" : false, "NetEmail" : true, "NetFTP" : true, "NetGodEyeAlarm" : false, "NetIPFilter" : true, "NetIPv6" : false, "NetKaiCong" : false, "NetKeyboard" : false, "NetLocalSdkPlatform" : false, "NetMobile" : false, "NetMobileWatch" : false, "NetMutliCast" : false, "NetNTP" : true, "NetNat" : true, "NetOpenVPN" : false, "NetPMS" : true, "NetPMSV2" : true, "NetPPPoE" : true, "NetPhoneMultimediaMsg" : false, "NetPhoneShortMsg" : false, "NetPlatMega" : false, "NetPlatShiSou" : false, "NetPlatVVEye" : false, "NetPlatXingWang" : false, "NetRTSP" : true, "NetSPVMN" : false, "NetTUTKIOTC" : false, "NetUPNP" : true, "NetVPN" : false, "NetWifi" : false, "NetWifiMode" : false, "PlatFormGBeyes" : false, "XMHeartBeat" : false }, "OtherFunction" : { "AlterDigitalName" : true, "DownLoadPause" : true, "HddLowSpaceUseMB" : false, "HideDigital" : false, "MusicFilePlay" : false, "NOHDDRECORD" : false, "NotSupportAH" : true, "NotSupportAV" : true, "NotSupportTalk" : false, "SDsupportRecord" : false, "ShowAlarmLevelRegion" : true, "ShowFalseCheckTime" : false, "SupportAbnormitySendMail" : true, "SupportBT" : true, "SupportC7Platform" : false, "SupportCamareStyle" : true, "SupportCameraMotorCtrl" : false, "SupportCfgCloudupgrade" : true, "SupportCloudUpgrade" : true, "SupportCommDataUpload" : false, "SupportCustomOemInfo" : false, "SupportDigitalEncode" : true, "SupportDigitalPre" : false, "SupportDimenCode" : true, "SupportEncodeAddBeep" : false, "SupportFTPTest" : false, "SupportFishEye" : false, "SupportImpRecord" : false, "SupportMailTest" : true, "SupportMaxPlayback" : false, "SupportModifyFrontcfg" : false, "SupportNVR" : false, "SupportNetLocalSearch" : false, "SupportOSDInfo" : false, "SupportOnvifClient" : false, "SupportPOS" : false, "SupportPlayBackExactSeek" : true, "SupportPtzIdleState" : false, "SupportRTSPClient" : false, "SupportResumePtzState" : false, "SupportSPVMNNasServer" : false, "SupportSetDigIP" : false, "SupportShowConnectStatus" : false, "SupportShowProductType" : false, "SupportSmallChnTitleFont" : false, "SupportSnapCfg" : false, "SupportSplitControl" : true, "SupportStorageFailReboot" : true, "SupportSwitchResolution" : false, "SupportTextPassword" : true, "SupportTimeZone" : true, "SupportUserProgram" : false, "SupportWriteLog" : true, "Supportonviftitle" : true, "SuppportChangeOnvifPort" : true, "TitleAndStateUpload" : true, "USBsupportRecord" : false }, "PreviewFunction" : { "GUISet" : false, "Tour" : false }, "TipShow" : { "NoBeepTipShow" : false, "NoEmailTipShow" : false, "NoFTPTipShow" : false } } }
.................;...{ "Name" : "General.General", "SessionID" : "0x00000001" }
....................{ "General.General" : { "AutoLogout" : 0, "FontSize" : 24, "IranCalendarEnable" : 0, "LocalNo" : 0, "MachineName" : "LocalHost", "OverWrite" : "OverWrite", "ScreenAutoShutdown" : 10, "ScreenSaveTime" : 0, "VideoOutPut" : "Auto" }, "Name" : "General.General", "Ret" : 100, "SessionID" : "0x00000001" }
.................<...{ "Name" : "General.Location", "SessionID" : "0x00000001" }
....................{ "General.Location" : { "DSTEnd" : { "Day" : 1, "Hour" : 1, "Minute" : 1, "Month" : 10, "Week" : 0, "Year" : 1970 }, "DSTRule" : "Off", "DSTStart" : { "Day" : 1, "Hour" : 1, "Minute" : 1, "Month" : 5, "Week" : 0, "Year" : 1970 }, "DateFormat" : "MMDDYY", "DateSeparator" : "-", "IranCalendar" : 0, "Language" : "Spanish", "TimeFormat" : "24", "VideoFormat" : "PAL", "WorkDay" : 62 }, "Name" : "General.Location", "Ret" : 100, "SessionID" : "0x00000001" }
.................7...{ "Name" : "OPTimeQuery", "SessionID" : "0x00000001" }
................e...{ "Name" : "OPTimeQuery", "OPTimeQuery" : "2017-09-13 12:45:04", "Ret" : 100, "SessionID" : "0x1" }
.................8...{ "Name" : "ChannelTitle", "SessionID" : "0x00000001" }
................d...{ "ChannelTitle" : [ "CAM01" ], "Name" : "ChannelTitle", "Ret" : 100, "SessionID" : "0x00000001" }
.................5...{ "Name" : "KeepAlive", "SessionID" : "0x00000001" }
................C...{ "Name" : "KeepAlive", "Ret" : 100, "SessionID" : "0x00000001" }
.................5...{ "Name" : "KeepAlive", "SessionID" : "0x00000001" }
................C...{ "Name" : "KeepAlive", "Ret" : 100, "SessionID" : "0x00000001" }

来自登录的十六进制流

6c3b6bf354c77cd1c384f64a0800450000acc4a7400040069dd3c0a82b76c0a82b0ace370457a0731062e2cbd5b680182086272c00000101080a40e824da000055a8ff00000000000000000000000000e803640000007b2022456e63727970745479706522203a20224d4435222c20224c6f67696e5479706522203a202244565249502d576562222c202250617373576f726422203a2022746c4a7770626f36222c2022557365724e616d6522203a202261646d696e22207d0a

Wireshark log

最佳答案

也许尝试通过http解决它。加载摄像头站点并查看报警日志。

可以看看java中http get的实现方式: HTTP GET request in java

如果数据准备好了,你必须解析它。使用 html 解析器查看数据中的信息:

Java : HTML Parsing

What are the pros and cons of the leading Java HTML parsers?

关于android - 从网络摄像机 (Hi3518) 获取警报/事件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46280158/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com