It seems I'm on the right way. Below are the VTH services/methods I get from a system.listService command at port 5000:
What I would like to do is:
- get an event from the VTH if someone arms the VTH Alarm (seems now easy to reach this goal with "eventManager.attach" method)
- be able to arm/disarm the VTH alarm using a remote command. ** Which method do I have to use to do this? **
[+] Login: Login Successed
[+] Started keepAlive thread
[+] Connected to the VTH
[*] Remote Services (70):
[*] Remote Services (70):
system
{
"params": {
"method": [
"system.listService",
"system.multicall",
"system.listMethod",
"system.methodSignature",
"system.methodHelp",
"system.getAPIVersion",
"system.multiSec"
]
}
}
AccessPoint
{
"params": {
"method": [
"AccessPoint.listMethod",
"AccessPoint.getAPLinksInfo"
]
}
}
AgingTest
{
"params": {
"method": [
"AgingTest.attachAgingInfo",
"AgingTest.detachAgingInfo",
"AgingTest.SetTestConfig",
"AgingTest.setSavingResult",
"AgingTest.startTest",
"AgingTest.stopTest",
"AgingTest.listMethod",
"AgingTest.setLampState",
"AgingTest.sendStandardDevInfo",
"AgingTest.getSystemInfo"
]
}
}
AirCondition
{
"params": {
"method": [
"AirCondition.factory.instance",
"AirCondition.destroy",
"AirCondition.open",
"AirCondition.close",
"AirCondition.setTemperature",
"AirCondition.adjustTemperature",
"AirCondition.setMode",
"AirCondition.setWindMode",
"AirCondition.listMethod",
"AirCondition.getState"
]
}
}
AroudWifi
{
"params": {
"method": [
"AroudWifi.getCaps",
"AroudWifi.listMethod"
]
}
}
BackgroundMusic
{
"params": {
"method": [
"BackgroundMusic.factory.instance",
"BackgroundMusic.destroy",
"BackgroundMusic.open",
"BackgroundMusic.close",
"BackgroundMusic.setVolume",
"BackgroundMusic.adjustVolume",
"BackgroundMusic.getVolume",
"BackgroundMusic.setAudioSource",
"BackgroundMusic.getAudioSource",
"BackgroundMusic.listMethod",
"BackgroundMusic.getState"
]
}
}
BridgeManager
{
"params": {
"method": [
"BridgeManager.listMethod",
"BridgeManager.getBridgeStatus"
]
}
}
CertManager
{
"params": {
"method": [
"CertManager.importSvrCert",
"CertManager.exportRootCert",
"CertManager.listMethod",
"CertManager.removeSvrCert",
"CertManager.getSvrCertInfo"
]
}
}
Curtain
{
"params": {
"method": [
"Curtain.factory.instance",
"Curtain.destroy",
"Curtain.open",
"Curtain.close",
"Curtain.listMethod",
"Curtain.adjustShading",
"Curtain.stop",
"Curtain.getState"
]
}
}
DataOutputVkManager
{
"params": {
"method": [
"DataOutputVkManager.findPasswd",
"DataOutputVkManager.listMethod"
]
}
}
DebugSvrCtrl
{
"params": {
"method": [
"DebugSvrCtrl.openDebugSvr",
"DebugSvrCtrl.closeDebugSvr",
"DebugSvrCtrl.listMethod"
]
}
}
DigitalCertificate
{
"params": {
"method": [
"DigitalCertificate.getCertReqInfo",
"DigitalCertificate.importCert",
"DigitalCertificate.importCRL",
"DigitalCertificate.listMethod",
"DigitalCertificate.getCertsInfo",
"DigitalCertificate.exportCert",
"DigitalCertificate.deleteCert"
]
}
}
DockUser
{
"params": {
"method": [
"DockUser.addUser",
"DockUser.deleteUser",
"DockUser.modifyUser",
"DockUser.modifyPassword",
"DockUser.getUserInfoAll",
"DockUser.listMethod"
]
}
}
EventRestore
{
"params": {
"method": [
"EventRestore.attach",
"EventRestore.detach",
"EventRestore.ackEvent",
"EventRestore.listMethod"
]
}
}
FactoryTool
{
"params": {
"method": [
"FactoryTool.setInitParam",
"FactoryTool.getInitParam",
"FactoryTool.setBootParams",
"FactoryTool.getAllMacs",
"FactoryTool.listMethod"
]
}
}
FileCompress
{
"params": {
"method": [
"FileCompress.listMethod",
"FileCompress.decompress",
"FileCompress.compress"
]
}
}
FileFindHelper
{
"params": {
"method": [
"FileFindHelper.startFind",
"FileFindHelper.findNext",
"FileFindHelper.stopFind",
"FileFindHelper.getBoundFile",
"FileFindHelper.startMotionFind",
"FileFindHelper.listMethod"
]
}
}
FreshAir
{
"params": {
"method": [
"FreshAir.factory.instance",
"FreshAir.destroy",
"FreshAir.open",
"FreshAir.close",
"FreshAir.setMode",
"FreshAir.listMethod",
"FreshAir.getState"
]
}
}
GroundHeat
{
"params": {
"method": [
"GroundHeat.factory.instance",
"GroundHeat.destroy",
"GroundHeat.open",
"GroundHeat.close",
"GroundHeat.setTemperature",
"GroundHeat.adjustTemperature",
"GroundHeat.setMode",
"GroundHeat.listMethod",
"GroundHeat.getState"
]
}
}
HighAvailability
{
"params": {
"method": [
"HighAvailability.factory.instance",
"HighAvailability.destroy",
"HighAvailability.setHAService",
"HighAvailability.getHAService",
"HighAvailability.startService",
"HighAvailability.stopService",
"HighAvailability.listMethod",
"HighAvailability.getServiceState"
]
}
}
IntervideoClient
{
"params": {
"method": [
"IntervideoClient.factory.instance",
"IntervideoClient.destroy",
"IntervideoClient.getVersion",
"IntervideoClient.listMethod"
]
}
}
IntervideoManager
{
"params": {
"method": [
"IntervideoManager.getVersion",
"IntervideoManager.testConnectivity",
"IntervideoManager.listMethod"
]
}
}
License
{
"params": {
"method": [
"License.setLicense",
"License.getAssistedInfo",
"License.listMethod"
]
}
}
Light
{
"params": {
"method": [
"Light.factory.instance",
"Light.destroy",
"Light.open",
"Light.close",
"Light.setBrightLevel",
"Light.adjustBright",
"Light.keepOn",
"Light.blink",
"Light.openCondition",
"Light.closeCondition",
"Light.brightLevelUp",
"Light.brightLevelDown",
"Light.listMethod",
"Light.getState"
]
}
}
LinkLayerVPNClient
{
"params": {
"method": [
"LinkLayerVPNClient.getVPNStatus",
"LinkLayerVPNClient.getVirtualIfInfo",
"LinkLayerVPNClient.listMethod"
]
}
}
MediaTest
{
"params": {
"method": [
"MediaTest.attach",
"MediaTest.detach",
"MediaTest.listMethod"
]
}
}
MonitorTransSender
{
"params": {
"method": [
"MonitorTransSender.start",
"MonitorTransSender.setIFrame",
"MonitorTransSender.stop",
"MonitorTransSender.listMethod"
]
}
}
MultiCertManager
{
"params": {
"method": [
"MultiCertManager.createCertUnit",
"MultiCertManager.createCSR",
"MultiCertManager.exportCertUnit",
"MultiCertManager.importCertUnit",
"MultiCertManager.getServerCertList",
"MultiCertManager.setActiveServerCert",
"MultiCertManager.getActiveServerCert",
"MultiCertManager.getCertInfo",
"MultiCertManager.removeCert",
"MultiCertManager.listMethod"
]
}
}
Nat
{
"params": {
"method": [
"Nat.factory.instance",
"Nat.destroy",
"Nat.start",
"Nat.stop",
"Nat.listMethod",
"Nat.getTurnStatus"
]
}
}
NetworkSnifferManager
{
"params": {
"method": [
"NetworkSnifferManager.factory.instance",
"NetworkSnifferManager.destroy",
"NetworkSnifferManager.start",
"NetworkSnifferManager.stop",
"NetworkSnifferManager.getSnifferInfo",
"NetworkSnifferManager.listMethod"
]
}
}
OSDManager
{
"params": {
"method": [
"OSDManager.getCaps",
"OSDManager.getCustomCaps",
"OSDManager.addPicture",
"OSDManager.modifyPicture",
"OSDManager.deletePicture",
"OSDManager.getPicture",
"OSDManager.bindPicture",
"OSDManager.unbindPicture",
"OSDManager.listMethod"
]
}
}
OrganizationManager
{
"params": {
"method": [
"OrganizationManager.factory.instance",
"OrganizationManager.destroy",
"OrganizationManager.addNodes",
"OrganizationManager.deleteNodes",
"OrganizationManager.getNodes",
"OrganizationManager.setNode",
"OrganizationManager.listMethod"
]
}
}
PTZAutoTest
{
"params": {
"method": [
"PTZAutoTest.getPTZTemperature",
"PTZAutoTest.getCameraState",
"PTZAutoTest.getVerticalState",
"PTZAutoTest.getHorizontalState",
"PTZAutoTest.setCameraPosition",
"PTZAutoTest.getPhotoresistorState",
"PTZAutoTest.setHorizontalState",
"PTZAutoTest.setVerticalState",
"PTZAutoTest.listMethod"
]
}
}
PasswdFind
{
"params": {
"method": [
"PasswdFind.setContact",
"PasswdFind.getContact",
"PasswdFind.getSecretQuestion",
"PasswdFind.checkQuestionAnswer",
"PasswdFind.listMethod"
]
}
}
PppoeCli
{
"params": {
"method": [
"PppoeCli.getPPPoEDialInfo",
"PppoeCli.listMethod"
]
}
}
RPCTest
{
"params": {
"method": [
"RPCTest.factory.instance",
"RPCTest.destroy",
"RPCTest.listMethod",
"RPCTest.TransmitCmd",
"RPCTest.GetConfig",
"RPCTest.CmdFaceBoardLed",
"RPCTest.readKeyValue",
"RPCTest.checkSD",
"RPCTest.writeSDData",
"RPCTest.readSDData",
"RPCTest.setScreenBackground",
"RPCTest.adjustBackgroundLight",
"RPCTest.stopTalk",
"RPCTest.startTalk",
"RPCTest.testMic",
"RPCTest.testReceiver",
"RPCTest.testLoudspeaker",
"RPCTest.setAlarmTrigger",
"RPCTest.getDIandAI",
"RPCTest.addAllHddtoRaid5",
"RPCTest.testCPU",
"RPCTest.getServerInfo",
"RPCTest.getRTCTime",
"RPCTest.getBasicInfo",
"RPCTest.accessAutoTesting",
"RPCTest.getPhotoresistorState",
"RPCTest.isResetKeySeted",
"RPCTest.getCryptoModuleStatus"
]
}
}
RecordFinder
{
"params": {
"method": [
"RecordFinder.factory.create",
"RecordFinder.destroy",
"RecordFinder.startFind",
"RecordFinder.doFind",
"RecordFinder.stopFind",
"RecordFinder.getQuerySize",
"RecordFinder.doSeekFind",
"RecordFinder.listMethod"
]
}
}
RecordUpdater
{
"params": {
"method": [
"RecordUpdater.factory.instance",
"RecordUpdater.destroy",
"RecordUpdater.import",
"RecordUpdater.insert",
"RecordUpdater.insertEx",
"RecordUpdater.get",
"RecordUpdater.getEx",
"RecordUpdater.update",
"RecordUpdater.updateEx",
"RecordUpdater.remove",
"RecordUpdater.removeEx",
"RecordUpdater.clear",
"RecordUpdater.importFile",
"RecordUpdater.exportFile",
"RecordUpdater.attach",
"RecordUpdater.detach",
"RecordUpdater.listMethod",
"RecordUpdater.getFileImportState",
"RecordUpdater.getFileExportState",
"RecordUpdater.getFileImportData",
"RecordUpdater.exportAsyncFile",
"RecordUpdater.getSchema",
"RecordUpdater.importFileEncrypt",
"RecordUpdater.exportFileEncrypt"
]
}
}
SecretQuestion
{
"params": {
"method": [
"SecretQuestion.setSecretQuestion",
"SecretQuestion.clearSecretQuestion",
"SecretQuestion.getAllQuestion",
"SecretQuestion.resetQuestion",
"SecretQuestion.listMethod"
]
}
}
Security
{
"params": {
"method": [
"Security.getEncryptInfo",
"Security.addUser",
"Security.addUserPlain",
"Security.modifyPasswordByType",
"Security.getConfig",
"Security.setConfig",
"Security.getDefault",
"Security.transferUKey",
"Security.modifyPasswordPlain",
"Security.listMethod"
]
}
}
SmartDevManager
{
"params": {
"method": [
"SmartDevManager.factory.instance",
"SmartDevManager.destroy",
"SmartDevManager.attach",
"SmartDevManager.detach",
"SmartDevManager.acceptSmartDevice",
"SmartDevManager.getDeviceList",
"SmartDevManager.renameDevice",
"SmartDevManager.removeDevice",
"SmartDevManager.sendCmd",
"SmartDevManager.setTimer",
"SmartDevManager.listMethod",
"SmartDevManager.setScheduleItem",
"SmartDevManager.setNetOptions"
]
}
}
SmartHomeManager
{
"params": {
"method": [
"SmartHomeManager.factory.instance",
"SmartHomeManager.destroy",
"SmartHomeManager.start",
"SmartHomeManager.attach",
"SmartHomeManager.detach",
"SmartHomeManager.getSupportBrands",
"SmartHomeManager.getSupportDevice",
"SmartHomeManager.getDeviceList",
"SmartHomeManager.getSceneMode",
"SmartHomeManager.setSceneMode",
"SmartHomeManager.saveSceneMode",
"SmartHomeManager.setScheduleItem",
"SmartHomeManager.removeScheduleItem",
"SmartHomeManager.modifySceneMode",
"SmartHomeManager.removeSceneMode",
"SmartHomeManager.setDeviceInfo",
"SmartHomeManager.listMethod",
"SmartHomeManager.getDeviceDigest",
"SmartHomeManager.setDeviceMode",
"SmartHomeManager.setCallInfo"
]
}
}
SmtpClient
{
"params": {
"method": [
"SmtpClient.sendTestMail",
"SmtpClient.listMethod"
]
}
}
StateManager
{
"params": {
"method": [
"StateManager.factory.instance",
"StateManager.destroy",
"StateManager.set",
"StateManager.get",
"StateManager.attach",
"StateManager.detach",
"StateManager.listMethod"
]
}
}
StorageFunc
{
"params": {
"method": [
"StorageFunc.markFile",
"StorageFunc.getMarkInfo",
"StorageFunc.listMethod"
]
}
}
UPnPPortmap
{
"params": {
"method": [
"UPnPPortmap.getRouterMapping",
"UPnPPortmap.getUPnPStatus",
"UPnPPortmap.listMethod",
"UPnPPortmap.refreshUpnpRouter"
]
}
}
UserLock
{
"params": {
"method": [
"UserLock.listMethod",
"UserLock.startFind",
"UserLock.doFind",
"UserLock.stopFind",
"UserLock.unlock"
]
}
}
UserSecurity
VDPPassThrough
{
"params": {
"method": [
"VDPPassThrough.call",
"VDPPassThrough.attachProc",
"VDPPassThrough.detachProc",
"VDPPassThrough.listMethod"
]
}
}
VideoOutput
Wireless433AutoTest
{
"params": {
"method": [
"Wireless433AutoTest.controlTest",
"Wireless433AutoTest.setTestParam",
"Wireless433AutoTest.getTestStatus",
"Wireless433AutoTest.listMethod"
]
}
}
WlanDevManager
{
"params": {
"method": [
"WlanDevManager.getWifiAPStatus",
"WlanDevManager.getWifiDeviceList",
"WlanDevManager.getWifiAPVersion",
"WlanDevManager.listMethod"
]
}
}
capsManager
{
"params": {
"method": [
"capsManager.factory.instance",
"capsManager.destroy",
"capsManager.set",
"capsManager.get",
"capsManager.alloc",
"capsManager.free",
"capsManager.listMethod"
]
}
}
configManager
{
"params": {
"method": [
"configManager.factory.instance",
"configManager.destroy",
"configManager.getConfig",
"configManager.setConfig",
"configManager.saveFile",
"configManager.deleteConfig",
"configManager.getDefault",
"configManager.setDefault",
"configManager.getMemberNames",
"configManager.restore",
"configManager.attach",
"configManager.detach",
"configManager.restoreExcept",
"configManager.copyConfig",
"configManager.getConfigEx",
"configManager.setConfigEx",
"configManager.exportPackConfig",
"configManager.importPackConfig",
"configManager.setChannelConfig",
"configManager.getVideoAnalyseConfig",
"configManager.setVideoAnalyseConfig",
"configManager.getFailureDetail",
"configManager.deleteFile",
"configManager.setTemporaryConfig",
"configManager.restoreTemporaryConfig",
"configManager.secGetDefault",
"configManager.exportRemoteDeviceList",
"configManager.importRemoteDeviceList",
"configManager.listMethod"
]
}
}
configManagerHelp
{
"params": {
"method": [
"configManagerHelp.importPackConfig",
"configManagerHelp.listMethod"
]
}
}
console
{
"params": {
"method": [
"console.factory.instance",
"console.destroy",
"console.attach",
"console.detach",
"console.runCmd",
"console.listMethod"
]
}
}
ddnsClient
{
"params": {
"method": [
"ddnsClient.factory.instance",
"ddnsClient.destroy",
"ddnsClient.testHostName",
"ddnsClient.listMethod",
"ddnsClient.getStatus",
"ddnsClient.getDomainNames"
]
}
}
deviceDiscovery
{
"params": {
"method": [
"deviceDiscovery.factory.instance",
"deviceDiscovery.destroy",
"deviceDiscovery.attach",
"deviceDiscovery.detach",
"deviceDiscovery.start",
"deviceDiscovery.stop",
"deviceDiscovery.refresh",
"deviceDiscovery.ipScan",
"deviceDiscovery.listMethod",
"deviceDiscovery.setConfig",
"deviceDiscovery.scanDevice"
]
}
}
eventManager
{
"params": {
"method": [
"eventManager.factory.instance",
"eventManager.destroy",
"eventManager.attach",
"eventManager.detach",
"eventManager.notify",
"eventManager.getEventIndexes",
"eventManager.confirmEvent",
"eventManager.confirmEventByPassword",
"eventManager.getCaps",
"eventManager.getEventMask",
"eventManager.getEventData",
"eventManager.receipt",
"eventManager.listMethod",
"eventManager.getEventLink"
]
}
}
global
{
"params": {
"method": [
"global.login",
"global.logout",
"global.keepAlive",
"global.setCurrentTime",
"global.getCurrentTime",
"global.listMethod"
]
}
}
locales
{
"params": {
"method": [
"locales.factory.instance",
"locales.destroy",
"locales.config",
"locales.SetLanguage",
"locales.GetLanguageList",
"locales.GetParsedString",
"locales.getCaps",
"locales.LoadString",
"locales.getVideoStandardList",
"locales.listMethod"
]
}
}
log
{
"params": {
"method": [
"log.factory.instance",
"log.destroy",
"log.getSummary",
"log.startFind",
"log.doFind",
"log.stopFind",
"log.clear",
"log.append",
"log.getCaps",
"log.getCount",
"log.doSeekFind",
"log.stop",
"log.resume",
"log.clearByTypes",
"log.listMethod"
]
}
}
magicBox
{
"params": {
"method": [
"magicBox.factory.instance",
"magicBox.destroy",
"magicBox.getSystemInfo",
"magicBox.config",
"magicBox.exit",
"magicBox.restart",
"magicBox.shutdown",
"magicBox.reboot",
"magicBox.beep",
"magicBox.getProcessInfo",
"magicBox.getDeviceType",
"magicBox.getDeviceClass",
"magicBox.getSerialNo",
"magicBox.getCPUCount",
"magicBox.getCPUUsage",
"magicBox.getMemoryInfo",
"magicBox.getLocalNo",
"magicBox.getMachineName",
"magicBox.getProductDefinition",
"magicBox.getExitTime",
"magicBox.getExitState",
"magicBox.isAppAutoStart",
"magicBox.resetSystem",
"magicBox.getSystemInfoNew",
"magicBox.getVideoChipType",
"magicBox.getProcessInfoEx",
"magicBox.getMainBoardCount",
"magicBox.getCaps",
"magicBox.getUpTime",
"magicBox.getVendor",
"magicBox.setDeviceParam",
"magicBox.getSubModules",
"magicBox.getSoftwareVersion",
"magicBox.getHardwareVersion",
"magicBox.get2DCode",
"magicBox.listMethod",
"magicBox.getEnv",
"magicBox.setEnv",
"magicBox.getBootParameter",
"magicBox.getHardwareType",
"magicBox.needReboot",
"magicBox.getMarketArea",
"magicBox.resetSystemEx",
"magicBox.set2DCode",
"magicBox.rebootDelay"
]
}
}
mobile
{
"params": {
"method": [
"mobile.factory.instance",
"mobile.destroy",
"mobile.getSIMState",
"mobile.getMobileRSSI",
"mobile.getIMSI",
"mobile.getModuleState",
"mobile.listMethod"
]
}
}
netApp
{
"params": {
"method": [
"netApp.factory.instance",
"netApp.destroy",
"netApp.scanWLanDevices",
"netApp.getNetInterfaces",
"netApp.getMobileInterfaces",
"netApp.getDialInfo",
"netApp.sendTestMail",
"netApp.getNetDataStat",
"netApp.getLinkStatus",
"netApp.getPppoeDns",
"netApp.getPppoeIp",
"netApp.getPppoeState",
"netApp.getiSCSITargets",
"netApp.getRemoteDeviceStatus",
"netApp.getUPnPStatus",
"netApp.getVirtualServiceStatus",
"netApp.getCaps",
"netApp.adjustTimeWithNTP",
"netApp.getNetResourceStat",
"netApp.getDefaultEthInfo",
"netApp.getMobileRSSI",
"netApp.checkIPConflict",
"netApp.listMethod",
"netApp.connectByWps",
"netApp.getPingStatus"
]
}
}
printLog
{
"params": {
"method": [
"printLog.factory.instance",
"printLog.destroy",
"printLog.getInfo",
"printLog.startFind",
"printLog.doFind",
"printLog.stopFind",
"printLog.listMethod"
]
}
}
upgrader
{
"params": {
"method": [
"upgrader.factory.instance",
"upgrader.destroy",
"upgrader.prepare",
"upgrader.appendData",
"upgrader.cancel",
"upgrader.execute",
"upgrader.getState",
"upgrader.getChipList",
"upgrader.chooseChip",
"upgrader.check",
"upgrader.start",
"upgrader.setPeripheralInfos",
"upgrader.setUrl",
"upgrader.setFile",
"upgrader.getUpdateSerial",
"upgrader.attachState",
"upgrader.detachState",
"upgrader.listMethod"
]
}
}
userAuth
{
"params": {
"method": [
"userAuth.getClassify",
"userAuth.listMethod"
]
}
}
userManager
{
"params": {
"method": [
"userManager.factory.instance",
"userManager.destroy",
"userManager.getAuthorityList",
"userManager.getErrorNo",
"userManager.addGroup",
"userManager.deleteGroup",
"userManager.modifyGroup",
"userManager.getGroupInfo",
"userManager.getGroupInfoAll",
"userManager.addUser",
"userManager.deleteUser",
"userManager.modifyUser",
"userManager.getUserInfo",
"userManager.getUserInfoAll",
"userManager.modifyPassword",
"userManager.saveFile",
"userManager.getActiveUserInfoAll",
"userManager.kickOut",
"userManager.blockPeer",
"userManager.getCaps",
"userManager.modifyPasswordByType",
"userManager.getBlockUserInfoList",
"userManager.attachActiveUserState",
"userManager.detachActiveUserState",
"userManager.listMethod"
]
}
}
webFunCollect
{
"params": {
"method": [
"webFunCollect.findItems",
"webFunCollect.listMethod"
]
}
}
[*] Disconnecting...
[*] Closed connection