diff --git a/Projects/la_mojo/build b/Projects/la_mojo/build index e30c9046..59699e61 100755 --- a/Projects/la_mojo/build +++ b/Projects/la_mojo/build @@ -4,7 +4,7 @@ #make clean -e "CFG=Debug" #make -e "CFG=Debug" -j6 -#make clean -e "CFG=Debug86" +make clean -e "CFG=Debug86" make -e "CFG=Debug86" -j4 #make clean -e "CFG=Release86" diff --git a/Projects/la_mojo/la_mojo.vpj b/Projects/la_mojo/la_mojo.vpj index 44f625e8..f2a33ce1 100644 --- a/Projects/la_mojo/la_mojo.vpj +++ b/Projects/la_mojo/la_mojo.vpj @@ -541,6 +541,7 @@ + diff --git a/Projects/la_mojo/makefile b/Projects/la_mojo/makefile index deed9f06..1df70f20 100644 --- a/Projects/la_mojo/makefile +++ b/Projects/la_mojo/makefile @@ -44,6 +44,7 @@ COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -96,6 +97,7 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -239,6 +241,7 @@ COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -291,6 +294,7 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -434,6 +438,7 @@ COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -486,6 +491,7 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -634,6 +640,7 @@ COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -686,6 +693,7 @@ ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ @@ -838,7 +846,8 @@ $(OUTDIR)/deviceNode2D.o: ../../lib/App/common/deviceNode2D.cpp ../../lib/App/co $(OUTDIR)/deviceNode3D.o: ../../lib/App/common/deviceNode3D.cpp ../../lib/App/common/deviceNode3D.h $(OUTDIR)/deviceNodeCamera.o: ../../lib/App/common/deviceNodeCamera.cpp ../../lib/App/common/deviceNodeCamera.h ../../lib/components/base/basicCameraInfo.h ../../lib/components/object/objectSystemAnchor.h ../../lib/hardware/uart/serialPort.h ../../lib/hardware/uart/serialSOL.h ../../lib/data/protocol/protocolPTZ_VISCA.h ../../lib/data/protocol/protocolPTZ_ONVIF.h ../../lib/data/protocol/protocolPTZ_PELCO.h ../../lib/App/common/hardwareManager.h ../../lib/App/common/hardwareResourceSerialProvider.h ../../lib/App/common/kernelModuleEmbedVideo.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h $(OUTDIR)/deviceNodeEthernet2Serial.o: ../../lib/App/common/deviceNodeEthernet2Serial.cpp ../../lib/App/common/deviceNodeEthernet2Serial.h ../../lib/App/common/hardwareManager.h ../../lib/data/protocol/protocol.h -$(OUTDIR)/deviceNodeFactory.o: ../../lib/App/common/deviceNodeFactory.cpp ../../lib/App/common/deviceNodeFactory.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h ../../lib/App/common/deviceNode3D.h ../../lib/App/common/deviceNode2D.h ../../lib/App/common/deviceNodePTZCamControl.h ../../lib/App/common/deviceNodeStaticCamControl.h ../../lib/App/common/deviceNodeEthernet2Serial.h +$(OUTDIR)/deviceNodeFactory.o: ../../lib/App/common/deviceNodeFactory.cpp ../../lib/App/common/deviceNodeFactory.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h ../../lib/App/common/deviceNode3D.h ../../lib/App/common/deviceNode2D.h ../../lib/App/common/deviceNodePTZCamControl.h ../../lib/App/common/deviceNodePresetCamControl.h ../../lib/App/common/deviceNodeStaticCamControl.h ../../lib/App/common/deviceNodeEthernet2Serial.h +$(OUTDIR)/deviceNodePresetCamControl.o: ../../lib/App/common/deviceNodePresetCamControl.cpp ../../lib/App/common/deviceNodePresetCamControl.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h $(OUTDIR)/deviceNodePTZCamControl.o: ../../lib/App/common/deviceNodePTZCamControl.cpp ../../lib/App/common/deviceNodePTZCamControl.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h $(OUTDIR)/deviceNodeSensor.o: ../../lib/App/common/deviceNodeSensor.cpp ../../lib/App/common/deviceNodeSensor.h ../../lib/components/object/objectSystemAnchor.h $(OUTDIR)/deviceNodeStaticCamControl.o: ../../lib/App/common/deviceNodeStaticCamControl.cpp ../../lib/App/common/deviceNodeStaticCamControl.h diff --git a/Projects/la_serva/makefile b/Projects/la_serva/makefile index bee6d9d5..1df70f20 100644 --- a/Projects/la_serva/makefile +++ b/Projects/la_serva/makefile @@ -19,69 +19,133 @@ endif # ifeq "$(CFG)" "Debug" OUTDIR=Debug -OUTFILE=$(OUTDIR)/serva_d +OUTFILE=$(OUTDIR)/mojo_d CFG_INC= CFG_LIB=-lsqlite3 -lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto \ - -lconfig -lz `pkg-config libavcodec libavdevice libavfilter \ - libavformat libavutil libpostproc libswresample libswscale --libs` \ - -latomic `pkg-config --libs openssl opencv4 rdkafka++`-lliveMedia \ - -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment + -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \ + libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -latomic `pkg-config --libs openssl \ + opencv4 rdkafka++` -L/usr/lib -lrdkafka++ -lrdkafka -lwiringx \ + -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment CFG_OBJ= -COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o OBJ=$(COMMON_OBJ) $(CFG_OBJ) -ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o -lsqlite3 -lpthread \ - -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig -lz `pkg-config \ + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o -lsqlite3 -lpthread -lmysqlclient -lssl -lcurl \ + -lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ libswresample libswscale --libs` -latomic `pkg-config --libs openssl \ - opencv4 rdkafka++`-lliveMedia -lgroupsock -lBasicUsageEnvironment \ - -lUsageEnvironment + opencv4 rdkafka++` -L/usr/lib -lrdkafka++ -lrdkafka -lwiringx \ + -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -COMPILE=g++ -c -x c++ "-DDEBUG" "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS__" "-D_SERVER_APPLICATION_" "-D_OPENCV_" "-DRASPI_HARDWARE" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +COMPILE=g++ -c -x c++ "-DDEBUG" "-D__STDC_CONSTANT_MACROS__" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" "-DRASPI_HARDWARE" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< LINK=g++ -O0 -w -o "$(OUTFILE)" $(ALL_OBJ) # Pattern rules $(OUTDIR)/%.o : ../../lib/components/object/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/App/serva/%.cpp - $(COMPILE) - $(OUTDIR)/%.o : ../../lib/data/json/%.cpp $(COMPILE) @@ -91,21 +155,45 @@ $(OUTDIR)/%.o : ../../lib/data/transport/%.cpp $(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/data/net/%.cpp +$(OUTDIR)/%.o : ../../lib/App/mojo/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/rfs/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/App/common/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/media/video/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/hid/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/components/base/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/sqlite/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + # Build rules all: $(OUTFILE) @@ -133,60 +221,123 @@ endif # ifeq "$(CFG)" "Release" OUTDIR=Release -OUTFILE=$(OUTDIR)/serva +OUTFILE=$(OUTDIR)/mojo CFG_INC= CFG_LIB= CFG_OBJ= -COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o OBJ=$(COMMON_OBJ) $(CFG_OBJ) -ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o - -COMPILE=g++ -c -x c++ "-DUSE_SERVER_MYSQL" "-D_SERVER_APPLICATION_" "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" "-DRASPI_HARDWARE" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< -LINK=g++ -O3 -w -lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -s -o "$(OUTFILE)" $(ALL_OBJ) + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o + +COMPILE=g++ -c -x c++ "-DSLIM_KERNEL" "-D_THREAD_SAFE" "-D_BSD_SOURCE" "-D_REENTRANT" -O3 -w -Wpointer-arith -std=gnu++11 -I../../lib/include -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +LINK=g++ -O3 -w -lconfig -lpthread -lmysqlclient -lelf -lcurses -lcdk -lcurl `pkg-config --libs rdkafka++` -L/usr/lib -lrdkafka++ -lrdkafka -lwiringx -lsqlite3 -s -o "$(OUTFILE)" $(ALL_OBJ) # Pattern rules $(OUTDIR)/%.o : ../../lib/components/object/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/App/serva/%.cpp - $(COMPILE) - $(OUTDIR)/%.o : ../../lib/data/json/%.cpp $(COMPILE) @@ -196,21 +347,45 @@ $(OUTDIR)/%.o : ../../lib/data/transport/%.cpp $(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/data/net/%.cpp +$(OUTDIR)/%.o : ../../lib/App/mojo/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/rfs/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/App/common/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/media/video/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/hid/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/components/base/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/sqlite/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + # Build rules all: $(OUTFILE) @@ -238,69 +413,133 @@ endif # ifeq "$(CFG)" "Debug86" OUTDIR=Debug86 -OUTFILE=$(OUTDIR)/serva_d +OUTFILE=$(OUTDIR)/mojo_d CFG_INC= -CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \ - -lz `pkg-config libavcodec libavdevice libavfilter libavformat \ - libavutil libpostproc libswresample libswscale --libs` -latomic \ - `pkg-config --libs openssl opencv4 rdkafka++` -lliveMedia \ - -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment +CFG_LIB=-lsqlite3 -lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto \ + -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \ + libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -latomic `pkg-config --libs openssl \ + opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \ + -lUsageEnvironment CFG_OBJ= -COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o OBJ=$(COMMON_OBJ) $(CFG_OBJ) -ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o -lpthread -lmysqlclient \ - -lssl -lcurl -lm -lcrypto -lconfig -lz `pkg-config libavcodec \ - libavdevice libavfilter libavformat libavutil libpostproc \ + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o -lsqlite3 -lpthread -lmysqlclient -lssl -lcurl \ + -lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ + libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ libswresample libswscale --libs` -latomic `pkg-config --libs openssl \ opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \ -lUsageEnvironment -COMPILE=g++ -c -x c++ "-DDEBUG" "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS" "-D_SERVER_APPLICATION_" "-D_OPENCV_" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +COMPILE=g++ -c -x c++ "-DDEBUG" "-DMEKOROT_PROJECT" "-D__STDC_CONSTANT_MACROS" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" -O0 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< LINK=g++ -O0 -w -o "$(OUTFILE)" $(ALL_OBJ) # Pattern rules $(OUTDIR)/%.o : ../../lib/components/object/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/App/serva/%.cpp - $(COMPILE) - $(OUTDIR)/%.o : ../../lib/data/json/%.cpp $(COMPILE) @@ -310,21 +549,45 @@ $(OUTDIR)/%.o : ../../lib/data/transport/%.cpp $(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/data/net/%.cpp +$(OUTDIR)/%.o : ../../lib/App/mojo/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/rfs/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/App/common/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/media/video/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/hid/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/components/base/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/sqlite/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + # Build rules all: $(OUTFILE) @@ -352,69 +615,133 @@ endif # ifeq "$(CFG)" "Release86" OUTDIR=Release86 -OUTFILE=$(OUTDIR)/serva +OUTFILE=$(OUTDIR)/mojo CFG_INC= -CFG_LIB=-lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto -lconfig \ - -lz `pkg-config libavcodec libavdevice libavfilter libavformat \ - libavutil libpostproc libswresample libswscale --libs` -latomic \ - `pkg-config --libs openssl opencv4 rdkafka++` -lliveMedia \ - -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -s +CFG_LIB=-lsqlite3 -lpthread -lmysqlclient -lssl -lcurl -lm -lcrypto \ + -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config libavcodec \ + libavdevice libavfilter libavformat libavutil libpostproc \ + libswresample libswscale --libs` -latomic `pkg-config --libs openssl \ + opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \ + -lUsageEnvironment CFG_OBJ= -COMMON_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +COMMON_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o OBJ=$(COMMON_OBJ) $(CFG_OBJ) -ALL_OBJ=$(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ +ALL_OBJ=$(OUTDIR)/base64.o $(OUTDIR)/basicCameraInfo.o \ + $(OUTDIR)/basicDualThread.o $(OUTDIR)/basicEngine.o \ $(OUTDIR)/basicEvent.o $(OUTDIR)/basicEventHandler.o \ $(OUTDIR)/basicEventHeap.o $(OUTDIR)/basicFunctionality.o \ - $(OUTDIR)/basicLogCollection.o $(OUTDIR)/basicLoggingService.o \ - $(OUTDIR)/basicMutex.o $(OUTDIR)/basicObject.o $(OUTDIR)/basicRing.o \ - $(OUTDIR)/basicSettings.o $(OUTDIR)/basicSettingsProvider.o \ - $(OUTDIR)/basicThread.o $(OUTDIR)/basicTransport.o \ - $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ - $(OUTDIR)/json_writer.o $(OUTDIR)/kernelPrototype.o \ - $(OUTDIR)/lifeMonitoring.o $(OUTDIR)/md5.o $(OUTDIR)/mysql_class.o \ - $(OUTDIR)/netClientHandler.o $(OUTDIR)/netServer.o \ - $(OUTDIR)/objectFileLoggingService.o \ - $(OUTDIR)/objectMySQLLoggingService.o $(OUTDIR)/protocol.o \ - $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/servaBackend.o \ - $(OUTDIR)/servaKernel.o $(OUTDIR)/servaKernelToolKit.o \ - $(OUTDIR)/servaRemoteClient.o $(OUTDIR)/servaRemoteClientHandler.o \ - $(OUTDIR)/serverDataBinder.o $(OUTDIR)/serverMySQL_dataBinder.o \ - $(OUTDIR)/serverPort.o $(OUTDIR)/Transform.o \ - $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o -lpthread -lmysqlclient \ - -lssl -lcurl -lm -lcrypto -lconfig -lz `pkg-config libavcodec \ - libavdevice libavfilter libavformat libavutil libpostproc \ + $(OUTDIR)/basicLIBAV.o $(OUTDIR)/basicLogCollection.o \ + $(OUTDIR)/basicLoggingService.o $(OUTDIR)/basicMemoryOperation.o \ + $(OUTDIR)/basicObject.o $(OUTDIR)/basicPosition.o \ + $(OUTDIR)/basicRing.o $(OUTDIR)/basicSettings.o \ + $(OUTDIR)/basicSettingsProvider.o $(OUTDIR)/basicThread.o \ + $(OUTDIR)/basicTransport.o $(OUTDIR)/clientPort.o \ + $(OUTDIR)/cmdNodeConveyor.o $(OUTDIR)/curlRequest.o \ + $(OUTDIR)/curlRequestsManager.o $(OUTDIR)/dataBinder.o \ + $(OUTDIR)/dataBinder_ReportAux.o $(OUTDIR)/detector.o \ + $(OUTDIR)/deviceNode.o $(OUTDIR)/deviceNode2D.o \ + $(OUTDIR)/deviceNode3D.o $(OUTDIR)/deviceNodeCamera.o \ + $(OUTDIR)/deviceNodeEthernet2Serial.o $(OUTDIR)/deviceNodeFactory.o \ + $(OUTDIR)/deviceNodePresetCamControl.o \ + $(OUTDIR)/deviceNodePTZCamControl.o $(OUTDIR)/deviceNodeSensor.o \ + $(OUTDIR)/deviceNodeStaticCamControl.o $(OUTDIR)/fs_helper.o \ + $(OUTDIR)/FSClient.o $(OUTDIR)/hardwareManager.o \ + $(OUTDIR)/hardwareResource.o \ + $(OUTDIR)/hardwareResourceDryContactProvider.o \ + $(OUTDIR)/hardwareResourceNetworkProvider.o \ + $(OUTDIR)/hardwareResourceSerialProvider.o \ + $(OUTDIR)/hardwareResourceVideoProvider.o $(OUTDIR)/heapDebug.o \ + $(OUTDIR)/hid_dc.o $(OUTDIR)/json_reader.o $(OUTDIR)/json_value.o \ + $(OUTDIR)/json_writer.o $(OUTDIR)/kernelEventFilter.o \ + $(OUTDIR)/kernelEventFilterAPF.o $(OUTDIR)/kernelEventFilterTrain.o \ + $(OUTDIR)/kernelModule.o $(OUTDIR)/kernelModuleEmbedVideo.o \ + $(OUTDIR)/kernelModuleFactory.o $(OUTDIR)/kernelModuleFlyHunter.o \ + $(OUTDIR)/kernelModuleKafka.o $(OUTDIR)/kernelModuleModemManager.o \ + $(OUTDIR)/kernelModuleOnvifObserver.o \ + $(OUTDIR)/kernelModuleReportBackupper.o $(OUTDIR)/kernelModuleSSDP.o \ + $(OUTDIR)/kernelModuleUSBRelay.o $(OUTDIR)/kernelPrototype.o \ + $(OUTDIR)/libzip.o $(OUTDIR)/mask.o $(OUTDIR)/md5.o \ + $(OUTDIR)/mojoBackend.o $(OUTDIR)/mojoKernel.o \ + $(OUTDIR)/mojoRemoteClient.o $(OUTDIR)/mysql_class.o \ + $(OUTDIR)/MySQL_dataBinder.o $(OUTDIR)/netClientHandler.o \ + $(OUTDIR)/netServer.o $(OUTDIR)/objectFileLoggingService.o \ + $(OUTDIR)/objectSystemAnchor.o $(OUTDIR)/ponvif.o \ + $(OUTDIR)/protocol.o $(OUTDIR)/protocolARGUS.o \ + $(OUTDIR)/protocolARGUS_DATA.o $(OUTDIR)/protocolHTTP.o \ + $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \ + $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \ + $(OUTDIR)/protocolONVIF.o $(OUTDIR)/protocolPTZ.o \ + $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \ + $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/serverPort.o \ + $(OUTDIR)/sqlite_class.o $(OUTDIR)/SQLite_dataBinder.o \ + $(OUTDIR)/Transform.o $(OUTDIR)/transportSerial.o \ + $(OUTDIR)/transportSocket.o $(OUTDIR)/utm.o \ + $(OUTDIR)/videoAVLIBSource.o $(OUTDIR)/videoLive555AVLibSource.o \ + $(OUTDIR)/xmlParser.o -lsqlite3 -lpthread -lmysqlclient -lssl -lcurl \ + -lm -lcrypto -lconfig -lz -lv4l1 -lv4l2 -lhidapi-libusb `pkg-config \ + libavcodec libavdevice libavfilter libavformat libavutil libpostproc \ libswresample libswscale --libs` -latomic `pkg-config --libs openssl \ opencv4 rdkafka++` -lliveMedia -lgroupsock -lBasicUsageEnvironment \ - -lUsageEnvironment -s + -lUsageEnvironment -COMPILE=g++ -c -x c++ "-DUSE_SERVER_MYSQL" "-D__STDC_CONSTANT_MACROS" "-D_SERVER_APPLICATION_" "-D_OPENCV_" -O3 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< +COMPILE=g++ -c -x c++ "-D__STDC_CONSTANT_MACROS" "-D_CLIENT_APPLICATION_" "-D_OPENCV_" -O3 -w -Wpointer-arith -std=c++11 -Wno-write-strings -I../../lib/include `pkg-config opencv4 libavcodec libavdevice libavfilter libavformat libavutil libpostproc libswresample libswscale live555 --cflags` -o "$(OUTDIR)/$(*F).o" $(CFG_INC) $< LINK=g++ -O3 -w -o "$(OUTFILE)" $(ALL_OBJ) # Pattern rules $(OUTDIR)/%.o : ../../lib/components/object/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/App/serva/%.cpp - $(COMPILE) - $(OUTDIR)/%.o : ../../lib/data/json/%.cpp $(COMPILE) @@ -424,21 +751,45 @@ $(OUTDIR)/%.o : ../../lib/data/transport/%.cpp $(OUTDIR)/%.o : ../../lib/data/protocol/%.cpp $(COMPILE) -$(OUTDIR)/%.o : ../../lib/data/net/%.cpp +$(OUTDIR)/%.o : ../../lib/App/mojo/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/rfs/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/App/common/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/net/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/media/video/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/hardware/hid/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/alg/lgs/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/data/mysql/%.cpp $(COMPILE) $(OUTDIR)/%.o : ../../lib/components/base/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/curl/%.cpp + $(COMPILE) + $(OUTDIR)/%.o : ../../lib/alg/generic/%.cpp $(COMPILE) +$(OUTDIR)/%.o : ../../lib/data/sqlite/%.cpp + $(COMPILE) + +$(OUTDIR)/%.o : ../../lib/data/ponvif/%.cpp + $(COMPILE) + # Build rules all: $(OUTFILE) @@ -464,42 +815,102 @@ endif # # include dependencies: # -$(OUTDIR)/basicDualThread.o: ../../lib/components/base/basicDualThread.cpp ../../lib/components/base/basicDualThread.h -$(OUTDIR)/basicEngine.o: ../../lib/components/base/basicEngine.cpp ../../lib/components/base/basicEngine.h -$(OUTDIR)/basicEvent.o: ../../lib/components/base/basicEvent.cpp ../../lib/components/base/basicEvent.h ../../lib/components/base/basicFunctionality.h -$(OUTDIR)/basicEventHandler.o: ../../lib/components/base/basicEventHandler.cpp ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicEventHeap.h -$(OUTDIR)/basicEventHeap.o: ../../lib/components/base/basicEventHeap.cpp ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicEventHandler.h -$(OUTDIR)/basicFunctionality.o: ../../lib/components/base/basicFunctionality.cpp ../../lib/components/base/basicFunctionality.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicLogCollection.h -$(OUTDIR)/basicLogCollection.o: ../../lib/components/base/basicLogCollection.cpp ../../lib/components/base/basicLogCollection.h ../../lib/alg/generic/heapDebug.h -$(OUTDIR)/basicLoggingService.o: ../../lib/components/base/basicLoggingService.cpp ../../lib/components/base/basicLoggingService.h -$(OUTDIR)/basicMutex.o: ../../lib/components/base/basicMutex.cpp ../../lib/components/base/basicMutex.h -$(OUTDIR)/basicObject.o: ../../lib/components/base/basicObject.cpp ../../lib/components/base/basicObject.h ../../lib/alg/generic/md5.h +$(OUTDIR)/base64.o: ../../lib/alg/generic/base64.cpp ../../lib/alg/generic/base64.h +$(OUTDIR)/basicCameraInfo.o: ../../lib/components/base/basicCameraInfo.cpp ../../lib/components/base/basicCameraInfo.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h +$(OUTDIR)/basicDualThread.o: ../../lib/components/base/basicDualThread.cpp ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h +$(OUTDIR)/basicEngine.o: ../../lib/components/base/basicEngine.cpp ../../lib/components/base/basicEngine.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/components/base/basicMutex.h +$(OUTDIR)/basicEvent.o: ../../lib/components/base/basicEvent.cpp ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/basicEventHandler.o: ../../lib/components/base/basicEventHandler.cpp ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h +$(OUTDIR)/basicEventHeap.o: ../../lib/components/base/basicEventHeap.cpp ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h +$(OUTDIR)/basicFunctionality.o: ../../lib/components/base/basicFunctionality.cpp ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h +$(OUTDIR)/basicLIBAV.o: ../../lib/components/base/basicLIBAV.cpp ../../lib/components/base/basicLIBAV.h +$(OUTDIR)/basicLogCollection.o: ../../lib/components/base/basicLogCollection.cpp ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/alg/generic/heapDebug.h +$(OUTDIR)/basicLoggingService.o: ../../lib/components/base/basicLoggingService.cpp ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h +$(OUTDIR)/basicMemoryOperation.o: ../../lib/components/base/basicMemoryOperation.cpp ../../lib/components/base/basicMemoryOperation.h +$(OUTDIR)/basicObject.o: ../../lib/components/base/basicObject.cpp ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/generic/md5.h +$(OUTDIR)/basicPosition.o: ../../lib/components/base/basicPosition.cpp ../../lib/components/base/basicPosition.h $(OUTDIR)/basicRing.o: ../../lib/components/base/basicRing.cpp ../../lib/components/base/basicRing.h -$(OUTDIR)/basicSettings.o: ../../lib/components/base/basicSettings.cpp ../../lib/components/base/basicSettings.h -$(OUTDIR)/basicSettingsProvider.o: ../../lib/components/base/basicSettingsProvider.cpp ../../lib/components/base/basicSettingsProvider.h -$(OUTDIR)/basicThread.o: ../../lib/components/base/basicThread.cpp ../../lib/components/base/basicThread.h +$(OUTDIR)/basicSettings.o: ../../lib/components/base/basicSettings.cpp ../../lib/components/base/basicSettings.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/basicSettingsProvider.o: ../../lib/components/base/basicSettingsProvider.cpp ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/basicThread.o: ../../lib/components/base/basicThread.cpp ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h $(OUTDIR)/basicTransport.o: ../../lib/components/base/basicTransport.cpp ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h +$(OUTDIR)/clientPort.o: ../../lib/data/net/clientPort.cpp ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h +$(OUTDIR)/cmdNodeConveyor.o: ../../lib/App/common/cmdNodeConveyor.cpp ../../lib/App/common/cmdNodeConveyor.h +$(OUTDIR)/curlRequest.o: ../../lib/data/curl/curlRequest.cpp ../../lib/data/curl/curlRequest.h +$(OUTDIR)/curlRequestsManager.o: ../../lib/data/curl/curlRequestsManager.cpp ../../lib/data/curl/curlRequestsManager.h +$(OUTDIR)/dataBinder.o: ../../lib/App/common/dataBinder.cpp ../../lib/App/common/dataBinder.h ../../lib/App/common/dataBinder_structures.h ../../lib/App/common/dataBinder_ReportAux.h +$(OUTDIR)/dataBinder_ReportAux.o: ../../lib/App/common/dataBinder_ReportAux.cpp ../../lib/App/common/dataBinder_ReportAux.h +$(OUTDIR)/detector.o: ../../lib/alg/lgs/detector.cpp ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/deviceNode.o: ../../lib/App/common/deviceNode.cpp ../../lib/App/common/deviceNode.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/deviceNode2D.o: ../../lib/App/common/deviceNode2D.cpp ../../lib/App/common/deviceNode2D.h ../../lib/App/common/hardwareResourceSerialProvider.h ../../lib/App/common/kernelPrototype.h ../../lib/App/common/hardwareManager.h +$(OUTDIR)/deviceNode3D.o: ../../lib/App/common/deviceNode3D.cpp ../../lib/App/common/deviceNode3D.h +$(OUTDIR)/deviceNodeCamera.o: ../../lib/App/common/deviceNodeCamera.cpp ../../lib/App/common/deviceNodeCamera.h ../../lib/components/base/basicCameraInfo.h ../../lib/components/object/objectSystemAnchor.h ../../lib/hardware/uart/serialPort.h ../../lib/hardware/uart/serialSOL.h ../../lib/data/protocol/protocolPTZ_VISCA.h ../../lib/data/protocol/protocolPTZ_ONVIF.h ../../lib/data/protocol/protocolPTZ_PELCO.h ../../lib/App/common/hardwareManager.h ../../lib/App/common/hardwareResourceSerialProvider.h ../../lib/App/common/kernelModuleEmbedVideo.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h +$(OUTDIR)/deviceNodeEthernet2Serial.o: ../../lib/App/common/deviceNodeEthernet2Serial.cpp ../../lib/App/common/deviceNodeEthernet2Serial.h ../../lib/App/common/hardwareManager.h ../../lib/data/protocol/protocol.h +$(OUTDIR)/deviceNodeFactory.o: ../../lib/App/common/deviceNodeFactory.cpp ../../lib/App/common/deviceNodeFactory.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h ../../lib/App/common/deviceNode3D.h ../../lib/App/common/deviceNode2D.h ../../lib/App/common/deviceNodePTZCamControl.h ../../lib/App/common/deviceNodePresetCamControl.h ../../lib/App/common/deviceNodeStaticCamControl.h ../../lib/App/common/deviceNodeEthernet2Serial.h +$(OUTDIR)/deviceNodePresetCamControl.o: ../../lib/App/common/deviceNodePresetCamControl.cpp ../../lib/App/common/deviceNodePresetCamControl.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h +$(OUTDIR)/deviceNodePTZCamControl.o: ../../lib/App/common/deviceNodePTZCamControl.cpp ../../lib/App/common/deviceNodePTZCamControl.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h +$(OUTDIR)/deviceNodeSensor.o: ../../lib/App/common/deviceNodeSensor.cpp ../../lib/App/common/deviceNodeSensor.h ../../lib/components/object/objectSystemAnchor.h +$(OUTDIR)/deviceNodeStaticCamControl.o: ../../lib/App/common/deviceNodeStaticCamControl.cpp ../../lib/App/common/deviceNodeStaticCamControl.h +$(OUTDIR)/fs_helper.o: ../../lib/data/rfs/fs_helper.cpp ../../lib/data/rfs/fs_helper.h +$(OUTDIR)/FSClient.o: ../../lib/data/rfs/FSClient.cpp ../../lib/data/rfs/FSClient.h +$(OUTDIR)/hardwareManager.o: ../../lib/App/common/hardwareManager.cpp ../../lib/App/common/hardwareManager.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h ../../lib/App/common/hardwareResourceSerialProvider.h ../../lib/App/common/hardwareResourceNetworkProvider.h ../../lib/App/common/hardwareResourceVideoProvider.h +$(OUTDIR)/hardwareResource.o: ../../lib/App/common/hardwareResource.cpp ../../lib/App/common/hardwareResource.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/hardwareResourceDryContactProvider.o: ../../lib/App/common/hardwareResourceDryContactProvider.cpp ../../lib/App/common/hardwareResourceDryContactProvider.h +$(OUTDIR)/hardwareResourceNetworkProvider.o: ../../lib/App/common/hardwareResourceNetworkProvider.cpp ../../lib/App/common/hardwareResourceNetworkProvider.h +$(OUTDIR)/hardwareResourceSerialProvider.o: ../../lib/App/common/hardwareResourceSerialProvider.cpp ../../lib/App/common/hardwareResourceSerialProvider.h +$(OUTDIR)/hardwareResourceVideoProvider.o: ../../lib/App/common/hardwareResourceVideoProvider.cpp ../../lib/App/common/hardwareResourceVideoProvider.h +$(OUTDIR)/heapDebug.o: ../../lib/alg/generic/heapDebug.cpp ../../lib/alg/generic/heapDebug.h +$(OUTDIR)/hid_dc.o: ../../lib/hardware/hid/hid_dc.cpp $(OUTDIR)/json_reader.o: ../../lib/data/json/json_reader.cpp ../../lib/data/json/json_tool.h $(OUTDIR)/json_value.o: ../../lib/data/json/json_value.cpp ../../lib/data/json/json_valueiterator.inl $(OUTDIR)/json_writer.o: ../../lib/data/json/json_writer.cpp ../../lib/data/json/json_tool.h +$(OUTDIR)/kernelEventFilter.o: ../../lib/App/common/kernelEventFilter.cpp ../../lib/App/common/kernelEventFilter.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/kernelEventFilterAPF.o: ../../lib/App/common/kernelEventFilterAPF.cpp ../../lib/App/common/kernelEventFilterAPF.h +$(OUTDIR)/kernelEventFilterTrain.o: ../../lib/App/common/kernelEventFilterTrain.cpp ../../lib/App/common/kernelEventFilterTrain.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/kernelModule.o: ../../lib/App/common/kernelModule.cpp ../../lib/App/common/kernelModule.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/kernelModuleEmbedVideo.o: ../../lib/App/common/kernelModuleEmbedVideo.cpp ../../lib/App/common/kernelModuleEmbedVideo.h +$(OUTDIR)/kernelModuleFactory.o: ../../lib/App/common/kernelModuleFactory.cpp ../../lib/App/common/kernelModuleFactory.h ../../lib/App/common/kernelModuleUSBRelay.h ../../lib/App/common/kernelModuleKafka.h ../../lib/App/common/kernelModuleFlyHunter.h ../../lib/App/common/kernelModuleSSDP.h ../../lib/App/common/kernelModuleOnvifObserver.h ../../lib/App/common/kernelModuleEmbedVideo.h ../../lib/App/common/kernelModuleModemManager.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/kernelModuleFlyHunter.o: ../../lib/App/common/kernelModuleFlyHunter.cpp ../../lib/App/common/kernelModuleFlyHunter.h +$(OUTDIR)/kernelModuleKafka.o: ../../lib/App/common/kernelModuleKafka.cpp ../../lib/App/common/kernelModuleKafka.h +$(OUTDIR)/kernelModuleModemManager.o: ../../lib/App/common/kernelModuleModemManager.cpp ../../lib/App/common/kernelModuleModemManager.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/kernelModuleOnvifObserver.o: ../../lib/App/common/kernelModuleOnvifObserver.cpp ../../lib/App/common/kernelModuleOnvifObserver.h ../../lib/App/common/hardwareManager.h ../../lib/App/common/hardwareResourceNetworkProvider.h +$(OUTDIR)/kernelModuleReportBackupper.o: ../../lib/App/common/kernelModuleReportBackupper.cpp ../../lib/App/common/kernelModuleReportBackupper.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/kernelModuleSSDP.o: ../../lib/App/common/kernelModuleSSDP.cpp ../../lib/App/common/kernelModuleSSDP.h +$(OUTDIR)/kernelModuleUSBRelay.o: ../../lib/App/common/kernelModuleUSBRelay.cpp ../../lib/App/common/kernelModuleUSBRelay.h $(OUTDIR)/kernelPrototype.o: ../../lib/App/common/kernelPrototype.cpp ../../lib/App/common/kernelPrototype.h -$(OUTDIR)/lifeMonitoring.o: ../../lib/App/serva/lifeMonitoring.cpp ../../lib/App/serva/lifeMonitoring.h +$(OUTDIR)/libzip.o: ../../lib/alg/generic/libzip.cpp ../../lib/alg/generic/libzip.h +$(OUTDIR)/mask.o: ../../lib/alg/lgs/mask.cpp ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h $(OUTDIR)/md5.o: ../../lib/alg/generic/md5.cpp ../../lib/alg/generic/md5.h +$(OUTDIR)/mojoBackend.o: ../../lib/App/mojo/mojoBackend.cpp ../../lib/App/mojo/mojoBackend.h ../../lib/components/base/basicSettings.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMemoryOperation.h ../../lib/components/object/objectFileLoggingService.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/mojoKernel.o: ../../lib/App/mojo/mojoKernel.cpp ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h ../../lib/App/common/kernelEventFilterAPF.h ../../lib/App/common/kernelEventFilterTrain.h ../../lib/App/common/kernelModuleEmbedVideo.h ../../lib/App/common/MySQL_dataBinder.h ../../lib/App/common/SQLite_dataBinder.h +$(OUTDIR)/mojoRemoteClient.o: ../../lib/App/mojo/mojoRemoteClient.cpp ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h ../../lib/App/mojo/mojoKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/detector.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicValidatable.h ../../lib/alg/lgs/detectorStructures.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/gui/gui.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/mojo/mojoRemoteClient.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h $(OUTDIR)/mysql_class.o: ../../lib/data/mysql/mysql_class.cpp ../../lib/data/mysql/mysql_class.h -$(OUTDIR)/netClientHandler.o: ../../lib/data/net/netClientHandler.cpp ../../lib/data/net/netClientHandler.h -$(OUTDIR)/netServer.o: ../../lib/data/net/netServer.cpp ../../lib/data/net/netServer.h ../../lib/data/net/netClientHandler.h -$(OUTDIR)/objectFileLoggingService.o: ../../lib/components/object/objectFileLoggingService.cpp ../../lib/components/object/objectFileLoggingService.h -$(OUTDIR)/objectMySQLLoggingService.o: ../../lib/App/serva/objectMySQLLoggingService.cpp ../../lib/App/serva/objectMySQLLoggingService.h ../../lib/App/common/serverDataBinder.h ../../lib/App/common/dataBinder_structures.h +$(OUTDIR)/MySQL_dataBinder.o: ../../lib/App/common/MySQL_dataBinder.cpp ../../lib/App/common/MySQL_dataBinder.h +$(OUTDIR)/netClientHandler.o: ../../lib/data/net/netClientHandler.cpp ../../lib/data/net/netClientHandler.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/serverPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/net/netServiceEngine.h +$(OUTDIR)/netServer.o: ../../lib/data/net/netServer.cpp ../../lib/data/net/netServer.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/data/protocol/protocol.h ../../lib/data/net/netServiceEngine.h ../../lib/data/net/netClientHandler.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/serverPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/net/netServiceEngine.h ../../lib/data/net/netClientHandler.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/data/net/serverPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/net/netServiceEngine.h +$(OUTDIR)/objectFileLoggingService.o: ../../lib/components/object/objectFileLoggingService.cpp ../../lib/components/object/objectFileLoggingService.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h +$(OUTDIR)/objectSystemAnchor.o: ../../lib/components/object/objectSystemAnchor.cpp ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h +$(OUTDIR)/ponvif.o: ../../lib/data/ponvif/ponvif.cpp ../../lib/data/ponvif/ponvif.h $(OUTDIR)/protocol.o: ../../lib/data/protocol/protocol.cpp ../../lib/data/protocol/protocol.h -$(OUTDIR)/protocolARGUS_DATA.o: ../../lib/data/protocol/protocolARGUS_DATA.cpp ../../lib/data/protocol/protocolARGUS_DATA.h ../../lib/components/base/basicFunctionality.h -$(OUTDIR)/servaBackend.o: ../../lib/App/serva/servaBackend.cpp ../../lib/App/serva/servaBackend.h ../../lib/App/common/serverMySQL_dataBinder.h ../../lib/App/common/serverDataBinder.h ../../lib/App/common/dataBinder_structures.h ../../lib/data/mysql/mysql_class.h ../../lib/components/base/basicSettingsProvider.h ../../lib/alg/generic/md5.h ../../lib/alg/lgs/mask.h ../../lib/components/base/basicSettings.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicMemoryOperation.h ../../lib/components/object/objectFileLoggingService.h ../../lib/App/serva/objectMySQLLoggingService.h ../../lib/App/common/serverDataBinder.h ../../lib/App/common/dataBinder_structures.h ../../lib/App/serva/servaKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicEventHeap.h ../../lib/components/object/objectSystemAnchor.h ../../lib/alg/lgs/detectorStructures.h ../../lib/alg/lgs/detector.h ../../lib/alg/lgs/mask.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/serva/lifeMonitoring.h ../../lib/App/serva/servaRemoteClient.h ../../lib/data/net/netServer.h -$(OUTDIR)/servaKernel.o: ../../lib/App/serva/servaKernel.cpp ../../lib/App/serva/servaKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicEventHeap.h ../../lib/components/object/objectSystemAnchor.h ../../lib/alg/lgs/detectorStructures.h ../../lib/alg/lgs/detector.h ../../lib/alg/lgs/mask.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/serva/lifeMonitoring.h ../../lib/App/serva/servaRemoteClient.h ../../lib/data/net/netServer.h ../../lib/App/common/kernelEventFilterAPF.h ../../lib/App/common/kernelEventFilterTrain.h ../../lib/App/common/kernelModuleEmbedVideo.h ../../lib/App/common/serverMySQL_dataBinder.h ../../lib/App/common/serverDataBinder.h ../../lib/App/common/dataBinder_structures.h ../../lib/data/mysql/mysql_class.h ../../lib/components/base/basicSettingsProvider.h ../../lib/alg/generic/md5.h ../../lib/alg/lgs/mask.h -$(OUTDIR)/servaKernelToolKit.o: ../../lib/App/serva/servaKernelToolKit.cpp ../../lib/App/serva/servaKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicEventHeap.h ../../lib/components/object/objectSystemAnchor.h ../../lib/alg/lgs/detectorStructures.h ../../lib/alg/lgs/detector.h ../../lib/alg/lgs/mask.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/serva/lifeMonitoring.h ../../lib/App/serva/servaRemoteClient.h ../../lib/data/net/netServer.h -$(OUTDIR)/servaRemoteClient.o: ../../lib/App/serva/servaRemoteClient.cpp ../../lib/App/serva/servaRemoteClient.h ../../lib/data/net/netServer.h ../../lib/App/serva/servaRemoteClientHandler.h ../../lib/data/net/netClientHandler.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h ../../lib/components/base/basicFunctionality.h ../../lib/App/serva/servaKernel.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicEventHeap.h ../../lib/components/object/objectSystemAnchor.h ../../lib/alg/lgs/detectorStructures.h ../../lib/alg/lgs/detector.h ../../lib/alg/lgs/mask.h ../../lib/alg/generic/md5.h ../../lib/App/common/kernelPrototype.h ../../lib/App/serva/lifeMonitoring.h ../../lib/App/serva/servaRemoteClient.h ../../lib/data/net/netServer.h -$(OUTDIR)/servaRemoteClientHandler.o: ../../lib/App/serva/servaRemoteClientHandler.cpp ../../lib/App/serva/servaRemoteClientHandler.h ../../lib/data/net/netClientHandler.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolARGUS_DATA.h ../../lib/components/base/basicFunctionality.h ../../lib/App/serva/servaRemoteClient.h ../../lib/data/net/netServer.h -$(OUTDIR)/serverDataBinder.o: ../../lib/App/common/serverDataBinder.cpp ../../lib/App/common/serverDataBinder.h ../../lib/App/common/dataBinder_structures.h -$(OUTDIR)/serverMySQL_dataBinder.o: ../../lib/App/common/serverMySQL_dataBinder.cpp ../../lib/App/common/serverMySQL_dataBinder.h ../../lib/App/common/serverDataBinder.h ../../lib/App/common/dataBinder_structures.h ../../lib/data/mysql/mysql_class.h ../../lib/components/base/basicSettingsProvider.h ../../lib/alg/generic/md5.h ../../lib/alg/lgs/mask.h -$(OUTDIR)/serverPort.o: ../../lib/data/net/serverPort.cpp ../../lib/data/net/serverPort.h -$(OUTDIR)/Transform.o: ../../lib/alg/generic/Transform.cpp ../../lib/alg/generic/Transform.h ../../lib/components/base/basicLogCollection.h -$(OUTDIR)/transportSocket.o: ../../lib/data/transport/transportSocket.cpp ../../lib/data/transport/transportSocket.h ../../lib/data/protocol/protocol.h +$(OUTDIR)/protocolARGUS.o: ../../lib/data/protocol/protocolARGUS.cpp ../../lib/data/protocol/protocolARGUS.h +$(OUTDIR)/protocolARGUS_DATA.o: ../../lib/data/protocol/protocolARGUS_DATA.cpp ../../lib/data/protocol/protocolARGUS_DATA.h +$(OUTDIR)/protocolHTTP.o: ../../lib/data/protocol/protocolHTTP.cpp ../../lib/data/protocol/protocolHTTP.h +$(OUTDIR)/protocolKAFKA.o: ../../lib/data/protocol/protocolKAFKA.cpp ../../lib/data/protocol/protocolKAFKA.h ../../lib/alg/generic/md5.h ../../lib/data/json/json_tool.h +$(OUTDIR)/protocolLGS2D.o: ../../lib/data/protocol/protocolLGS2D.cpp ../../lib/data/protocol/protocolLGS2D.h +$(OUTDIR)/protocolLGS3D.o: ../../lib/data/protocol/protocolLGS3D.cpp ../../lib/data/protocol/protocolLGS3D.h +$(OUTDIR)/protocolLGS3D_client.o: ../../lib/data/protocol/protocolLGS3D_client.cpp ../../lib/data/protocol/protocolLGS3D_client.h +$(OUTDIR)/protocolONVIF.o: ../../lib/data/protocol/protocolONVIF.cpp ../../lib/data/protocol/protocolONVIF.h +$(OUTDIR)/protocolPTZ.o: ../../lib/data/protocol/protocolPTZ.cpp ../../lib/data/protocol/protocolPTZ.h +$(OUTDIR)/protocolPTZ_ONVIF.o: ../../lib/data/protocol/protocolPTZ_ONVIF.cpp ../../lib/data/protocol/protocolPTZ_ONVIF.h ../../lib/hardware/uart/serialPort.h +$(OUTDIR)/protocolPTZ_PELCO.o: ../../lib/data/protocol/protocolPTZ_PELCO.cpp ../../lib/data/protocol/protocolPTZ_PELCO.h +$(OUTDIR)/protocolPTZ_VISCA.o: ../../lib/data/protocol/protocolPTZ_VISCA.cpp ../../lib/data/protocol/protocolPTZ_VISCA.h +$(OUTDIR)/serverPort.o: ../../lib/data/net/serverPort.cpp ../../lib/data/net/serverPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h +$(OUTDIR)/sqlite_class.o: ../../lib/data/sqlite/sqlite_class.cpp ../../lib/data/sqlite/sqlite_class.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h +$(OUTDIR)/SQLite_dataBinder.o: ../../lib/App/common/SQLite_dataBinder.cpp ../../lib/App/common/SQLite_dataBinder.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/Transform.h +$(OUTDIR)/Transform.o: ../../lib/alg/generic/Transform.cpp ../../lib/alg/generic/Transform.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h +$(OUTDIR)/transportSerial.o: ../../lib/data/transport/transportSerial.cpp ../../lib/data/transport/transportSerial.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h +$(OUTDIR)/transportSocket.o: ../../lib/data/transport/transportSocket.cpp ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicLoggingService.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicTransport.h ../../lib/data/protocol/protocol.h $(OUTDIR)/utm.o: ../../lib/alg/generic/utm.cpp ../../lib/alg/generic/utm.h +$(OUTDIR)/videoAVLIBSource.o: ../../lib/data/media/video/videoAVLIBSource.cpp ../../lib/data/media/video/videoAVLIBSource.h +$(OUTDIR)/videoLive555AVLibSource.o: ../../lib/data/media/video/videoLive555AVLibSource.cpp ../../lib/data/media/video/videoLive555AVLibSource.h +$(OUTDIR)/xmlParser.o: ../../lib/data/protocol/xmlParser.cpp ../../lib/data/protocol/xmlParser.h diff --git a/lib/App/3dSERVER/LRF_DefenderHandler.h b/lib/App/3dSERVER/LRF_DefenderHandler.h index 420081ed..7d545456 100644 --- a/lib/App/3dSERVER/LRF_DefenderHandler.h +++ b/lib/App/3dSERVER/LRF_DefenderHandler.h @@ -23,7 +23,7 @@ class LRF_DefenderHandler : public basicThread, public basicEventHandler, public public: explicit LRF_DefenderHandler( config_setting_t *SNode ); virtual ~LRF_DefenderHandler(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); }; #endif // __LRF_CLIENTHANDLER_H_INCL__ diff --git a/lib/App/3dSERVER/LRF_KafkaHandler.h b/lib/App/3dSERVER/LRF_KafkaHandler.h index 83628d9a..a8fb48a2 100644 --- a/lib/App/3dSERVER/LRF_KafkaHandler.h +++ b/lib/App/3dSERVER/LRF_KafkaHandler.h @@ -23,7 +23,7 @@ class LRF_KafkaHandler : public basicThread, public basicEventHandler, public pr public: explicit LRF_KafkaHandler( config_setting_t *SNode ); virtual ~LRF_KafkaHandler(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); }; #endif // __LRF_CLIENTHANDLER_H_INCL__ diff --git a/lib/App/3dSERVER/LRF_SafeShoreHandler.h b/lib/App/3dSERVER/LRF_SafeShoreHandler.h index b0d916d1..8781e3f7 100644 --- a/lib/App/3dSERVER/LRF_SafeShoreHandler.h +++ b/lib/App/3dSERVER/LRF_SafeShoreHandler.h @@ -27,7 +27,7 @@ class LRF_SafeShoreHandler : public basicThread, public basicEventHandler, publi // Destructor virtual ~LRF_SafeShoreHandler(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); }; #endif // __LRF_CLIENTHANDLER_H_INCL__ diff --git a/lib/App/common/SQLite_dataBinder.cpp b/lib/App/common/SQLite_dataBinder.cpp index 7d8118be..c0f9a701 100644 --- a/lib/App/common/SQLite_dataBinder.cpp +++ b/lib/App/common/SQLite_dataBinder.cpp @@ -1963,14 +1963,19 @@ DBC_LRF_DATA *sqliteDBC::getLRFData( uint32_t ID ){ if( it != cArr->end() ){ tVal->base_shift = atoi( it->second.c_str() ); }; - it = cArr->find("mirror_shift"); - if( it != cArr->end() ){ - tVal->mirror_shift = atoi( it->second.c_str() ); - }; + //it = cArr->find("mirror_shift"); + //if( it != cArr->end() ){ + // tVal->mirror_shift = atoi( it->second.c_str() ); + //}; it = cArr->find("detection_profile_id"); if( it != cArr->end() ){ tVal->detection_profile_id = atoi( it->second.c_str() ); }; + it = cArr->find("prefered_camera_id"); + if( it != cArr->end() ){ + tVal->prefered_camera_id = atoi( it->second.c_str() ); + }; + /* it = cArr->find("draw_lrf_id"); if( it != cArr->end() ){ tVal->draw_lrf_id = atoi( it->second.c_str() ); @@ -2003,6 +2008,7 @@ DBC_LRF_DATA *sqliteDBC::getLRFData( uint32_t ID ){ if( it != cArr->end() ){ tVal->force_settings = (bool)atoi( it->second.c_str() ); }; + */ }; }; }; @@ -2996,6 +3002,37 @@ uint32_t sqliteDBC::getWiFi_ID( uint32_t nif_id ){ return tVal; }; +DBC_INT_LIST *sqliteDBC::listCamPresets( uint32_t SETID ){ + DBC_INT_LIST * tVal = NULL; + if( m_bStoIsConnected ){ + char tQBuf[CTEXT]; + AAssoc *result; + sprintf(tQBuf, "SELECT `id` FROM `cameras_presets` WHERE `preset_id`=%d", SETID ); +#ifdef DEBUG + LOG(tQBuf); +#endif + result = m_pDataStorage->Query( tQBuf ); + if( result!= NULL ) { + if( result->size() > 0 ) { + Assoc *cArr; + tVal = new DBC_INT_LIST(); + if( tVal != NULL ) { + Assoc::iterator it; + for(int i=0;isize();i++) { + cArr = result->at(i); + it = cArr->find("id"); + if( it != cArr->end() ){ + tVal->push_back( atoi( it->second.c_str() )); + }; + }; + }; + }; + }; + deleteResult( result ); + }; + return tVal; +}; + DBC_INT_LIST *sqliteDBC::listFilters( uint32_t ServerID ){ DBC_INT_LIST * tVal = NULL; if( m_bStoIsConnected ){ @@ -3065,13 +3102,13 @@ DBC_INT_LIST *sqliteDBC::listMediaStreams( uint32_t SiteId, uint8_t listMode ){ AAssoc *result; switch( listMode ){ case LIST_VALID_RECORDS: - sprintf(tQBuf, "SELECT `ms`.`id` FROM `nodes` `nd` LEFT JOIN `media_streams` `ms` ON (`ms`.`id`=`nd`.`aux_parameter`) WHERE `nd`.`type` IN (10,11,12,13) AND `ms`.`valid`=1 AND `nd`.`online`=1" ); + sprintf(tQBuf, "SELECT `ms`.`id` FROM `nodes` `nd` LEFT JOIN `media_streams` `ms` ON (`ms`.`id`=`nd`.`aux_parameter`) WHERE `nd`.`type` IN (10,11,12,13,14,15) AND `ms`.`valid`=1 AND `nd`.`online`=1" ); break; case LIST_INVALID_RECORDS: - sprintf(tQBuf, "SELECT `ms`.`id` FROM `nodes` `nd` LEFT JOIN `media_streams` `ms` ON (`ms`.`id`=`nd`.`aux_parameter`) WHERE `nd`.`type` IN (10,11,12,13) AND `ms`.`valid`=1 AND `nd`.`online`=0" ); + sprintf(tQBuf, "SELECT `ms`.`id` FROM `nodes` `nd` LEFT JOIN `media_streams` `ms` ON (`ms`.`id`=`nd`.`aux_parameter`) WHERE `nd`.`type` IN (10,11,12,13,14,15) AND `ms`.`valid`=1 AND `nd`.`online`=0" ); break; default: - sprintf(tQBuf, "SELECT `ms`.`id` FROM `nodes` `nd` LEFT JOIN `media_streams` `ms` ON (`ms`.`id`=`nd`.`aux_parameter`) WHERE `nd`.`type` IN (10,11,12,13) AND `ms`.`valid`=1" ); + sprintf(tQBuf, "SELECT `ms`.`id` FROM `nodes` `nd` LEFT JOIN `media_streams` `ms` ON (`ms`.`id`=`nd`.`aux_parameter`) WHERE `nd`.`type` IN (10,11,12,13,14,15) AND `ms`.`valid`=1" ); }; #ifdef DEBUG_ALL LOG(tQBuf); @@ -3869,9 +3906,17 @@ DBC_CAM_DATA *sqliteDBC::getCamData( uint32_t ID ){ if( it != cArr->end() ){ tVal->homing_to = atoi( it->second.c_str() ); }; - it = cArr->find("home_token"); + //it = cArr->find("home_token"); + //if( it != cArr->end() ){ + // strncpy( tVal->home_token, it->second.c_str(), 32 ); + //}; + it = cArr->find("eco_ir"); + if( it != cArr->end() ){ + tVal->eco_ir = (bool) atoi( it->second.c_str() ); + }; + it = cArr->find("prefered_events_only"); if( it != cArr->end() ){ - strncpy( tVal->home_token, it->second.c_str(), 32 ); + tVal->prefered_events_only = (bool) atoi( it->second.c_str() ); }; }; }; @@ -3907,6 +3952,87 @@ uint32_t sqliteDBC::getCamId( CSTR UUID ){ return RetVal; }; +CAM_PRESET *sqliteDBC::getCamPreset( uint32_t SETID ){ + CAM_PRESET *tVal = NULL; + if( m_bStoIsConnected ){ + char tQBuf[CTEXT]; + AAssoc *result; + sprintf(tQBuf, "SELECT * FROM `cameras_presets` WHERE `id`=%d", SETID ); +#ifdef DEBUG + LOG(tQBuf); +#endif + result = m_pDataStorage->Query( tQBuf ); + if( result!= NULL ) { + if( result->size() > 0 ) { + Assoc *cArr; + tVal = (CAM_PRESET*) malloc(sizeof(CAM_PRESET)); + if( tVal != NULL ) { + memset( tVal, 0 , sizeof(CAM_PRESET)); + tVal->id = SETID; + Assoc::iterator it; + cArr = result->at(0); + it = cArr->find("token"); + if( it != cArr->end() ){ + strncpy( tVal->token, it->second.c_str(), 2 ); + tVal->token[3] = (char)0; + }; + it = cArr->find("role"); + if( it != cArr->end() ){ + tVal->role = atoi( it->second.c_str() ); + }; + it = cArr->find("row"); + if( it != cArr->end() ){ + tVal->row = atoi( it->second.c_str() ); + }; + it = cArr->find("column"); + if( it != cArr->end() ){ + tVal->col = atoi( it->second.c_str() ); + }; + }; + }; + }; + deleteResult( result ); + }; + return tVal; +}; +DBC_PRESETS_INFO *sqliteDBC::getCamPresetInfo( uint32_t CamID ){ + DBC_PRESETS_INFO *tVal = NULL; + if( m_bStoIsConnected ){ + char tQBuf[CTEXT]; + AAssoc *result; + sprintf(tQBuf, "SELECT * FROM `cameras_preset_sets` WHERE `camera_id`=%d", CamID ); +#ifdef DEBUG + LOG(tQBuf); +#endif + result = m_pDataStorage->Query( tQBuf ); + if( result!= NULL ) { + if( result->size() > 0 ) { + Assoc *cArr; + tVal = (DBC_PRESETS_INFO*) malloc(sizeof(DBC_PRESETS_INFO)); + if( tVal != NULL ) { + memset( tVal, 0 , sizeof(DBC_PRESETS_INFO)); + Assoc::iterator it; + cArr = result->at(0); + it = cArr->find("maxCount"); + if( it != cArr->end() ){ + tVal->maxCount = atoi( it->second.c_str() ); + }; + it = cArr->find("p_segs"); + if( it != cArr->end() ){ + tVal->gCols = atoi( it->second.c_str() ); + }; + it = cArr->find("z_segs"); + if( it != cArr->end() ){ + tVal->gRows = atoi( it->second.c_str() ); + }; + }; + }; + }; + deleteResult( result ); + }; + return tVal; +}; + CSTR sqliteDBC::getDataParam( uint8_t pid ){ switch ( pid ) { case 0: return strdup( m_pDbFile ); break; diff --git a/lib/App/common/SQLite_dataBinder.h b/lib/App/common/SQLite_dataBinder.h index 2cab3dcc..a8bddb25 100644 --- a/lib/App/common/SQLite_dataBinder.h +++ b/lib/App/common/SQLite_dataBinder.h @@ -103,6 +103,8 @@ class sqliteDBC: public dataBinder { virtual bool getAppDebugMode(); virtual DBC_CAM_DATA * getCamData( uint32_t CamID ); virtual uint32_t getCamId( CSTR UUID ); + virtual CAM_PRESET * getCamPreset( uint32_t SETID ); + virtual DBC_PRESETS_INFO * getCamPresetInfo( uint32_t CamID ); virtual CSTR getCurrentReportDir( void ); virtual DBC_MODULE_EMBED_VIDEO_DATA * getEmbedVideoData( uint32_t ID ); virtual DBC_LRF_INI * getINIData( uint32_t lrfID ); @@ -141,7 +143,7 @@ class sqliteDBC: public dataBinder { virtual TRAIN_FILTER_DATA * getTrainFilterData( uint32_t ID ); virtual DBC_UART_DATA * getUartData( uint32_t UartID ); virtual uint32_t getUartID( uint32_t NodeID, uint8_t Type, CSTR path ); - + virtual DBC_INT_LIST * listCamPresets( uint32_t SETID ); virtual DBC_INT_LIST * listFilters( uint32_t ServerID ); virtual DBC_INT_LIST * listLRFUploads( uint32_t deviceID ); virtual DBC_INT_LIST * listMediaStreams( uint32_t SiteId, uint8_t listingType = LIST_ALL_RECORDS ); diff --git a/lib/App/common/dataBinder.h b/lib/App/common/dataBinder.h index 468b7832..26080345 100644 --- a/lib/App/common/dataBinder.h +++ b/lib/App/common/dataBinder.h @@ -57,6 +57,7 @@ class dataBinder{ virtual void lazyEventArchiver( uint32_t DalayTime = 10 ){}; virtual DBC_INT_LIST * listCamMediaStreams( uint32_t CAMID ){ return NULL;}; + virtual DBC_INT_LIST * listCamPresets( uint32_t SETID ){ return NULL;}; virtual DBC_INT_LIST * listStreamCapPictures( uint32_t StreamID, uint32_t cnt ){ return NULL;}; virtual DBC_INT_LIST * listDetectionProfileIDs( uint32_t nodeID ){ return NULL;}; virtual DBC_INT_LIST * listDetectionProfiles( uint32_t nodeID ){ return NULL;}; @@ -81,11 +82,12 @@ class dataBinder{ virtual bool getAllCamRecords( uint32_t SiteID, vectorCamRecords &VR ){ return false;}; virtual DBC_APF_DATA * getAPFData( uint32_t APFID ){ return NULL;}; virtual bool getAppDebugMode(){ return false; }; + virtual DBC_CAP_DATA * getCamCapPictureData( uint32_t PicID ){ return NULL;}; virtual DBC_CAM_DATA * getCamData( uint32_t CamID ){ return NULL;}; virtual uint32_t getCamId( CSTR UUID ){ return 0;}; - + virtual CAM_PRESET * getCamPreset( uint32_t SETID ){ return NULL;}; + virtual DBC_PRESETS_INFO * getCamPresetInfo( uint32_t CamID ){ return NULL;}; virtual bool getConnectionStatus(void){return false;}; - virtual DBC_CAP_DATA * getCamCapPictureData( uint32_t PicID ){ return NULL;}; virtual CSTR getCurrentReportDir( void ){ return NULL; }; virtual DBC_EVT_RECORD * getEventByUUID( CSTR UUID ){ return NULL;}; virtual DBC_MODULE_EMBED_VIDEO_DATA * getEmbedVideoData( uint32_t ID ){ return NULL;}; diff --git a/lib/App/common/dataBinder_structures.h b/lib/App/common/dataBinder_structures.h index fe0dcda7..11bb83d9 100644 --- a/lib/App/common/dataBinder_structures.h +++ b/lib/App/common/dataBinder_structures.h @@ -61,6 +61,8 @@ typedef enum E_ARGUS_NODE_TYPE{ ARGUS_ANALOG_PTZ_CAMERA = 11, ARGUS_IP_STATIC_CAMERA = 12, ARGUS_IP_PTZ_CAMERA = 13, + ARGUS_IP_PRESET_CAMERA = 14, + ARGUS_ANALOG_PRESET_CAMERA = 15, ARGUS_IP_UART_GATEWAY = 20, ARGUS_JAMER = 40, ARGUS_IP_VIDEO_SERVER = 50, @@ -233,7 +235,9 @@ typedef struct S_DBC_CAM_DATA{ bool manual; bool homing_enable; uint32_t homing_to; - char home_token[33]; + //char home_token[33]; + bool eco_ir; + bool prefered_events_only; }DBC_CAM_DATA; typedef struct S_DBC_NETWORK_DATA{ @@ -482,7 +486,8 @@ typedef struct S_DBC_LRF_DATA{ int32_t base_shift; int32_t mirror_shift; uint8_t detection_profile_id; - uint8_t draw_lrf_id; + int32_t prefered_camera_id; + uint8_t draw_lrf_id; uint32_t width_table_id; uint32_t zoom_table_id; uint8_t embd_cam; @@ -599,16 +604,27 @@ typedef struct S_DBC_APF_DATA{ typedef struct S_DBC_MODEM_MANAGER_DATA{ uint32_t id; - uint32_t time_window; - uint32_t evt_trigers; uint16_t modem_id; - //char call_target[64]; - //char sms_target[64]; + uint32_t evt_mode; + uint32_t time_window; bool sms_enabled; - bool call_enabled; + bool call_enabled; uint8_t call_hangup_wait; + uint32_t last_trigger_ts; + uint32_t active_call; + uint32_t active_sms; + uint32_t active_pb_id; }DBC_MODEM_MANAGER_DATA; +typedef struct S_DBC_MODEM_PHONEBOOK_RECORD{ + uint32_t id; + char number[64]; + uint8_t mode; + uint32_t trigger_special; + char label[64]; + char custom_msg[128]; +}DBC_MODEM_PHONEBOOK_RECORD; + typedef struct S_DBC_MODEM_DATA{ uint32_t id; uint32_t modem_id; @@ -633,15 +649,6 @@ typedef struct S_DBC_MODEM_DATA{ char registration[65]; }DBC_MODEM_DATA; -typedef struct S_DBC_MODEM_PHONEBOOK_RECORD{ - uint32_t id; - char number[64]; - bool call_only; - uint32_t trigger_special; - char label[64]; - char custom_msg[128]; -}DBC_MODEM_PHONEBOOK_RECORD; - typedef struct S_DBC_3DLRF_WSTAT{ }DBC_3DLRF_WSTAT; @@ -766,6 +773,26 @@ typedef struct S_CAM_ROI{ float max_range; }CAM_ROI; +typedef struct S_CAM_PRESET{ + uint32_t id; + uint8_t role; + char token[3]; + uint8_t row; + uint8_t col; +}CAM_PRESET; + +typedef std::vector V_PRESETS; + +typedef struct S_DBC_PRESETS_INFO{ + uint8_t maxCount; + uint8_t gRows; + uint8_t gCols; +}DBC_PRESETS_INFO; + +typedef struct S_CAM_PRESETS_SET: public S_DBC_PRESETS_INFO{ + V_PRESETS presets; +}CAM_PRESETS_SET; + typedef struct S_DBC_LRF_UPLOAD_DATA{ uint32_t id; char md5[33]; diff --git a/lib/App/common/deviceNode2D.cpp b/lib/App/common/deviceNode2D.cpp index 0d9db2ed..b6bf6f60 100644 --- a/lib/App/common/deviceNode2D.cpp +++ b/lib/App/common/deviceNode2D.cpp @@ -2561,6 +2561,11 @@ void device2DSensor::proceedDBCommands(){ AZ = atoi(strstr(tCMD->PARAM, ":") + 1) - m_sLRF_DATA.base_shift; RANGE = atoi( tCMD->PARAM ); WIDTH = 8888; + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + #ifdef DEBUG_EXTRA char tBuff[128]; sprintf( tBuff, "ROI AZ: %d RANGE: %d WIDTH: %d", AZ, RANGE, WIDTH ); @@ -2571,6 +2576,9 @@ void device2DSensor::proceedDBCommands(){ bEVT = createBasicEvent( m_sNodeData.node_id, m_eEventClass, EVT_ROI_ACTIVE, NULL, NULL, tData ); if( bEVT != NULL ) { + if( m_sLRF_DATA.prefered_camera_id ) { + bEVT->m_nDestinationNodeID = m_sLRF_DATA.prefered_camera_id; + }; m_pEventHeap->broadcast( bEVT ); } else { free( tData ); @@ -3039,6 +3047,11 @@ bool device2DSensor::packetHandler( protocolPackage *Package ){ AZ = (( Package->m_pData[cIDX + 3] >> 3 ) << 8 ) | Package->m_pData[cIDX + 4]; RANGE = (( Package->m_pData[cIDX + 3] & 0x07 ) << 8 ) | Package->m_pData[cIDX + 5]; WIDTH = 8888; + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + #ifdef DEBUG_EXTRA sprintf( tBuff, "AZ: %d RANGE: %d WIDTH: %d", AZ, RANGE, WIDTH ); LOG( tBuff ); @@ -3058,6 +3071,9 @@ bool device2DSensor::packetHandler( protocolPackage *Package ){ }; bEVT = createBasicEvent( m_sNodeData.node_id, m_eEventClass, EVT_TARGET_2D_WHITE, NULL, NULL, tData ); if( bEVT != NULL ) { + if( m_sLRF_DATA.prefered_camera_id ) { + bEVT->m_nDestinationNodeID = m_sLRF_DATA.prefered_camera_id; + }; m_pEventHeap->broadcast(bEVT); } else { free( tData ); @@ -3198,6 +3214,11 @@ bool device2DSensor::packetHandler( protocolPackage *Package ){ AZ = (( Package->m_pData[cIDX + 3] >> 3 ) << 8 ) | Package->m_pData[cIDX + 4]; RANGE = (( Package->m_pData[cIDX + 3] & 0x07 ) << 8 ) | Package->m_pData[cIDX + 5]; WIDTH = ( Package->m_pData[cIDX + 6] << 24 ) | ( Package->m_pData[cIDX + 7] << 16 ) | ( Package->m_pData[cIDX + 8] << 8 ) | Package->m_pData[cIDX + 9]; + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + #ifdef DEBUG_EXTRA sprintf( tBuff, "AZ: %d RANGE: %d WIDTH: %d", AZ, RANGE, WIDTH ); LOG( tBuff ); @@ -3221,6 +3242,9 @@ bool device2DSensor::packetHandler( protocolPackage *Package ){ }; bEVT = createBasicEvent( m_sNodeData.node_id, m_eEventClass, EVT_TARGET_2D_WHITE, NULL, NULL, tData ); if( bEVT != NULL ) { + if( m_sLRF_DATA.prefered_camera_id ) { + bEVT->m_nDestinationNodeID = m_sLRF_DATA.prefered_camera_id; + }; m_pEventHeap->broadcast( bEVT ); } else { free( tData ); @@ -3551,6 +3575,9 @@ void device2DSensor::simulateTarget( void ){ RANGE = uint16_t ( rand() * ( 2048.0f /(float) RAND_MAX )); WIDTH = 4000; + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); TARGET_DATA * tData = prepareTargetData( AZ, RANGE, WIDTH ); @@ -3561,8 +3588,12 @@ void device2DSensor::simulateTarget( void ){ return; }; }; + EVENT_CONTAINER * bEVT = createBasicEvent( m_sNodeData.node_id, m_eEventClass, EVT_TARGET_2D_WHITE, NULL, NULL, tData ); if (bEVT != NULL) { + if( m_sLRF_DATA.prefered_camera_id ) { + bEVT->m_nDestinationNodeID = m_sLRF_DATA.prefered_camera_id; + }; m_pEventHeap->broadcast( bEVT ); }; }; diff --git a/lib/App/common/deviceNode3D.cpp b/lib/App/common/deviceNode3D.cpp index 6e5a67b8..25e5136b 100644 --- a/lib/App/common/deviceNode3D.cpp +++ b/lib/App/common/deviceNode3D.cpp @@ -1,4 +1,5 @@ #include "deviceNode3D.h" +#include "kernelPrototype.h" #define LOG( X ) deviceNode::m_pLog->Log( "NODE3D", this, X ) #define LOG_ERROR( X ) deviceNode::m_pLog->Log( "NODE3D", this, _LOG_ERROR, X ) @@ -2150,6 +2151,11 @@ bool device3DSensor::packetHandler( protocolPackage* Package ) { case EVT_TARGET_2D_BLACK: case EVT_TARGET_3D_WHITE: case EVT_TARGET_3D_BLACK:{ + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + TARGET_DATA *tData; tData = prepareTargetData(cEVT + xindex); if(tData != NULL){ @@ -2250,12 +2256,20 @@ bool device3DSensor::packetHandler( protocolPackage* Package ) { }; case CMD_TARGET: { LOG("JUJA 1"); + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, "Target"); m_pEventHeap->broadcast(tEVT); break; }; case CMD_TARGET_WW: { LOG("JUJA 2"); + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, "Target with Width"); m_pEventHeap->broadcast(tEVT); break; @@ -2277,6 +2291,10 @@ bool device3DSensor::packetHandler( protocolPackage* Package ) { width = ( width << 8 ) | pReceivedPackage[15]; tCEVT.w_cnt = width;// / tCEVT.range; + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + #ifdef DEBUG char zoppA[128]; sprintf( zoppA, "Encoded Data: 0x%02X TH: %d K:%d R:%d WC:%d", tCEVT.type, tCEVT.th_id, tCEVT.k_id, tCEVT.range, tCEVT.w_cnt ); @@ -2328,14 +2346,19 @@ bool device3DSensor::packetHandler( protocolPackage* Package ) { for( int index = 0; index < sizeof(CLIENT_EVENT); index++ ){ ((uint8_t*)tData)[index] = pReceivedPackage[5+index]; }; - + fRange = 300.0 / 4095.0 * tData->mRange; makeCds( tData->mStartID, sX, sY, ( tData->mInfo & 0xFF000000 ) > 0 ); makeCds( tData->mEndID, eX, eY, ( tData->mInfo & 0xFF000000 ) > 0 ); cX = ((sX+eX)>>1); cY = ((sY+eY)>>1); fAzimuth = (360.0 / TH_LINE_NODES )*cX; - fElevation = 90.0 - (90.0/Q_SCAN_COUNT )*cY; + fElevation = 90.0 - (90.0/Q_SCAN_COUNT )*cY; + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + //if( m_pMapWidget != NULL ) m_pMapWidget->addTarget( makeIds( cX, cY ), m_bIsMaster ); //if( m_pRadarWidget != NULL ) m_pRadarWidget->addTarget( makeIds( cX, cY ), tData->mRange, m_bIsMaster ); if( ( tData->mInfo & 0x00FF0000 ) > 0 ){ @@ -2505,6 +2528,10 @@ void device3DSensor::simulateTarget( void ){ switch ( m_bSymStage ) { case 1: { if( IntruderIsVisible() ){ + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tData = prepareSimData( m_oIntruder_ ); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2532,6 +2559,11 @@ void device3DSensor::simulateTarget( void ){ }; case 2:{ if( IntruderIsVisible() ){ + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + + tData = prepareSimData( m_oIntruder_ ); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2552,6 +2584,11 @@ void device3DSensor::simulateTarget( void ){ m_oIntruder_.updateMatrix(); if( HunterIsVisible() ){ + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tData = prepareSimData( m_oHunter_ ); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2580,6 +2617,11 @@ void device3DSensor::simulateTarget( void ){ }; case 3:{ if( IntruderIsVisible() ){ + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tData = prepareSimData( m_oIntruder_ ); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2600,6 +2642,11 @@ void device3DSensor::simulateTarget( void ){ m_oIntruder_.updateMatrix(); if( HunterIsVisible() ){ + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tData = prepareSimData( m_oHunter_ ); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2622,6 +2669,11 @@ void device3DSensor::simulateTarget( void ){ }; case 4:{ if( HunterIsVisible() ){ + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tData = prepareSimData(m_oHunter_); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2644,6 +2696,11 @@ void device3DSensor::simulateTarget( void ){ }; case 5:{ if( HunterIsVisible() ){ + + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + tData = prepareSimData(m_oHunter_); if ( tData ) { EVENT_CONTAINER *bEVT = createBasicEvent( getNodeID(), EVT_CLASS_SENSOR_3D, EVT_TARGET_3D_WHITE, NULL, NULL, tData); @@ -2683,6 +2740,10 @@ void device3DSensor::simulateTarget( void ){ cEVT.k_id = 5; cEVT.w_cnt = 5; + //Triggering Session in Kernel + kernelPrototype *AK = kernelPrototype::getInstance(); + if ( AK ) AK->startSession(); + //tData = m_pMasterNode-> tData = prepareTargetData( &cEVT ); if( tData != NULL ){ diff --git a/lib/App/common/deviceNodeCamera.cpp b/lib/App/common/deviceNodeCamera.cpp index db357e5e..77d041b5 100644 --- a/lib/App/common/deviceNodeCamera.cpp +++ b/lib/App/common/deviceNodeCamera.cpp @@ -90,6 +90,8 @@ deviceNodeCamera::deviceNodeCamera( uint32_t NodeID ): deviceNode( NodeID ), bas //m_pLog = basicLogCollection::getInstance(); m_pBEH = basicEventHeap::getInstance(); m_bSkeepPositioningWait = true; + m_bNoAbsPositionning = false; + m_bCameraOnHomePosition = false; m_tTimeTSeconds = 0; m_pProtocol = NULL; m_pTransport = NULL; @@ -100,6 +102,11 @@ deviceNodeCamera::deviceNodeCamera( uint32_t NodeID ): deviceNode( NodeID ), bas m_fMaxRange = m_fMinHFov = m_fMaxHFov = m_fMinVFov = m_fMaxVFov = .0f; m_nRelativeMoveCounter = 0; m_bRelativeMoveMatrix = 0; + m_bCurrentPresetCol = 0; + m_bCurrentPresetRow = 0; + m_bShineOnTarget = false; + m_bIRIsOn = false; + m_bIRTO = 0; m_fSpeedRise = 0.03f; m_fZoomCorrection = 1.0f; m_fRM_Pan = m_fRM_Tilt = m_fRM_Zoom = .0f; @@ -111,6 +118,8 @@ deviceNodeCamera::deviceNodeCamera( DBC_NODE_DATA *Data ): deviceNode( Data ), //m_pLog = basicLogCollection::getInstance(); m_pBEH = basicEventHeap::getInstance(); m_bSkeepPositioningWait = true; + m_bNoAbsPositionning = false; + m_bCameraOnHomePosition = false; m_tTimeTSeconds = 0; m_pProtocol = NULL; m_pTransport = NULL; @@ -121,6 +130,11 @@ deviceNodeCamera::deviceNodeCamera( DBC_NODE_DATA *Data ): deviceNode( Data ), m_fMaxRange = m_fMinHFov = m_fMaxHFov = m_fMinVFov = m_fMaxVFov = .0f; m_nRelativeMoveCounter = 0; m_bRelativeMoveMatrix = 0; + m_bCurrentPresetCol = 0; + m_bCurrentPresetRow = 0; + m_bShineOnTarget = false; + m_bIRIsOn = false; + m_bIRTO = 0; m_fSpeedRise = 0.03f; m_fZoomCorrection = 1.0f; m_fRM_Pan = m_fRM_Tilt = m_fRM_Zoom = .0f; @@ -147,7 +161,7 @@ deviceNodeCamera::~deviceNodeCamera(){ break; }; }; - } + }; }; LOG("Transport Del OK"); if( m_pProtocol != NULL ) { @@ -448,7 +462,9 @@ bool deviceNodeCamera::create(){ #endif }; }; - if( m_pProtocol == NULL ) { + //Check - No ABS Movement! + if( ( m_sCamData.type == ARGUS_IP_PRESET_CAMERA ) || ( m_sCamData.type == ARGUS_ANALOG_PRESET_CAMERA ) ) m_bNoAbsPositionning = true; + if (m_pProtocol == NULL) { if( m_sCamData.protocol == 0 ) { m_sCamData.online = true; } else LOG_ERROR("No Proto Created!"); @@ -456,6 +472,9 @@ bool deviceNodeCamera::create(){ #ifdef DEBUG LOG("Proto is OK"); #endif + //Load Presets only if we have protocol + load_presets(); + mojoKernel *tKRNL = mojoKernel::getInstance(); if( tKRNL ) { m_bSkeepPositioningWait = (( tKRNL->getMediaMode() & EVE_OUTPUT_VIDEO ) == EVE_OUTPUT_VIDEO ); @@ -790,7 +809,6 @@ bool deviceNodeCamera::absoluteMove( uint32_t TargetRefID, float PanPOS, float T bool deviceNodeCamera::absoluteMove( uint32_t TargetRefID, C3D_ORIENT_ONVIF O ){ if( m_sCamData.online ){ - CAM_TASK *tTask = (CAM_TASK *)malloc(sizeof(CAM_TASK)); if( tTask ){ memset(tTask, 0, sizeof(CAM_TASK)); @@ -869,19 +887,36 @@ void deviceNodeCamera::m_fThreadProc( void ){ break; }; case CAM_WS_INIT_GO_HOME:{ + m_nHomingCounter = 0; + if( !m_bNoAbsPositionning ) { #ifdef DEBUG - LOG("INIT GO -1 0 -1"); + LOG("INIT GO -1 0 -1"); #endif - m_nHomingCounter = 0; - if( m_pProtocol->goAbsolute( -1, 0, -1 ) ) { - m_fCP_Pan = -1; - m_fCP_Tilt = 0; - m_fCP_Zoom = -1; + if (m_pProtocol->goAbsolute(-1, 0, -1)) { + m_fCP_Pan = -1; + m_fCP_Tilt = 0; + m_fCP_Zoom = -1; + setWM( CAM_WS_READY ); + }; + } else { +#ifdef DEBUG + LOG("Skip! Go Home!"); +#endif + CSTR TK = getPresetToken( ARGUS_PRESET_TYPE_HOME ); + if( TK ) { + if ( !m_bCameraOnHomePosition ) { + if( !m_pProtocol->goPreset( TK )){ + LOG_ERROR("Cannot Issue goPreset Command!"); + }; + m_bCameraOnHomePosition = true; + }; + }; setWM( CAM_WS_READY ); }; break; }; case CAM_WS_AUTOMATED_MOVE:{ + m_bCameraOnHomePosition = false; m_nRelativeMoveCounter++; if( ( m_bRelativeMoveMatrix & 0x03 ) != 0 ) { //Pan Move @@ -966,6 +1001,7 @@ void deviceNodeCamera::m_fThreadProc( void ){ }; case CAM_WS_GO_ABS_ROI: case CAM_WS_GO_ABS_POSITION:{ + m_bCameraOnHomePosition = false; setWM( CAM_WS_BUSY ); if( m_pCurrentROI != NULL ){ m_nHomingCounter = 0; @@ -979,23 +1015,17 @@ void deviceNodeCamera::m_fThreadProc( void ){ //tEVT->m_db_id = tTASK->source_evt_id; // EVT ids embed in DATA m_pBEH->broadcast( tEVT ); }; - }; - //update position Info - m_fCP_Pan = m_pCurrentROI->cam_orientation.pan; - m_fCP_Tilt = m_pCurrentROI->cam_orientation.tilt; - m_fCP_Zoom = m_pCurrentROI->cam_orientation.zoom; - - // Do Movement - if( !m_pProtocol->goAbsolute( - m_pCurrentROI->cam_orientation.pan, - m_pCurrentROI->cam_orientation.tilt, - ( m_pCurrentROI->cam_orientation.zoom * m_fZoomCorrection ) - )){ - LOG_ERROR("Cannot Issue goAbsolute Command!->Restart Camera?"); - setWM( CAM_WS_END ); - } else { - // Waiting Movement finish - if ( m_bSkeepPositioningWait ) { + }; + if( m_bNoAbsPositionning ){ + uint8_t COL, ROW; + translateROI2PRESET( + m_pCurrentROI->cam_orientation.pan, + m_pCurrentROI->cam_orientation.tilt, + m_pCurrentROI->cam_orientation.zoom, COL, ROW ); + if ( ( m_bCurrentPresetCol == COL ) && ( m_bCurrentPresetRow == ROW ) ) { + m_fCP_Pan = m_pCurrentROI->cam_orientation.pan; + m_fCP_Tilt = m_pCurrentROI->cam_orientation.tilt; + m_fCP_Zoom = m_pCurrentROI->cam_orientation.zoom; // Send Capture event DBC_SNAPSHOT_DATA *tData = fusion_translate_ROI( m_pCurrentROI ); utilizeROI( m_pCurrentROI ); @@ -1021,7 +1051,96 @@ void deviceNodeCamera::m_fThreadProc( void ){ }; }; } else { - setWM(CAM_WS_WAIT_ONPOS); + CSTR token = getPresetToken( COL, ROW ); + if ( token ) { + //update position Info + m_bCurrentPresetCol = COL; + m_bCurrentPresetRow = ROW; + m_fCP_Pan = m_pCurrentROI->cam_orientation.pan; + m_fCP_Tilt = m_pCurrentROI->cam_orientation.tilt; + m_fCP_Zoom = m_pCurrentROI->cam_orientation.zoom; + if( !m_pProtocol->goPreset( token ) ){ + LOG_ERROR("Cannot Issue goPreset Command!->Restart Camera?"); + setWM( CAM_WS_END ); + } else { + // Waiting Movement finish + if( m_bSkeepPositioningWait ){ + // Send Capture event + DBC_SNAPSHOT_DATA *tData = fusion_translate_ROI( m_pCurrentROI ); + utilizeROI( m_pCurrentROI ); + setWM( CAM_WS_READY ); + if( tData != NULL ) { + if( m_pBEH ){ + EVENT_CONTAINER *tEVT = createBasicEvent( + m_sNodeData.node_id, + EVT_CLASS_CAMERA_CTRL, + EVT_CAMERA_ON_POSITION, + NULL, NULL, tData ); + if( tEVT ){ + #ifdef DEBUG + LOG("INSTANT BCAST CAM ONPOS"); + #endif + //tEVT->m_db_id = tTASK->source_evt_id; // EVT ids embed in DATA + m_pBEH->broadcast( tEVT ); + } else { + free( tData ); + }; + } else { + free( tData ); + }; + }; + } else { + setWM(CAM_WS_WAIT_ONPOS); + }; + }; + } else { + utilizeROI( m_pCurrentROI ); + setWM( CAM_WS_READY ); + }; + }; + } else { + //update position Info + m_fCP_Pan = m_pCurrentROI->cam_orientation.pan; + m_fCP_Tilt = m_pCurrentROI->cam_orientation.tilt; + m_fCP_Zoom = m_pCurrentROI->cam_orientation.zoom; + // Do Movement + if( !m_pProtocol->goAbsolute( + m_pCurrentROI->cam_orientation.pan, + m_pCurrentROI->cam_orientation.tilt, + ( m_pCurrentROI->cam_orientation.zoom * m_fZoomCorrection ) + )){ + LOG_ERROR("Cannot Issue goAbsolute Command!->Restart Camera?"); + setWM( CAM_WS_END ); + } else { + // Waiting Movement finish + if( m_bSkeepPositioningWait ){ + // Send Capture event + DBC_SNAPSHOT_DATA *tData = fusion_translate_ROI( m_pCurrentROI ); + utilizeROI( m_pCurrentROI ); + setWM( CAM_WS_READY ); + if( tData != NULL ) { + if( m_pBEH ){ + EVENT_CONTAINER *tEVT = createBasicEvent( + m_sNodeData.node_id, + EVT_CLASS_CAMERA_CTRL, + EVT_CAMERA_ON_POSITION, + NULL, NULL, tData ); + if( tEVT ){ + #ifdef DEBUG + LOG("INSTANT BCAST CAM ONPOS"); + #endif + //tEVT->m_db_id = tTASK->source_evt_id; // EVT ids embed in DATA + m_pBEH->broadcast( tEVT ); + } else { + free( tData ); + }; + } else { + free( tData ); + }; + }; + } else { + setWM(CAM_WS_WAIT_ONPOS); + }; }; }; } else setWM( CAM_WS_READY ); @@ -1040,9 +1159,10 @@ void deviceNodeCamera::m_fThreadProc( void ){ LOG("Start Waiting Cam On Position!"); #endif if (!m_pProtocol->waitMoveIsDone()) { - //Some Cameras does not upport that :( + //Some Cameras does not support that :( //LOG_ERROR("Cannot Issue getPosition Command!->Restart Camera?"); //setWM( CAM_WS_END ); + m_bSkeepPositioningWait = true; }; if( tData != NULL ) { if( m_pBEH ){ @@ -1068,15 +1188,42 @@ void deviceNodeCamera::m_fThreadProc( void ){ break; }; case CAM_WS_GO_HOMING_PRESET:{ - if( m_sCamData.home_token[0] != (char)0 ) { - //LOG( m_sCamData.home_token ); - if( !m_pProtocol->goPreset( m_sCamData.home_token )){ - LOG_ERROR("Cannot Issue goPreset Command!"); + CSTR TK = getPresetToken( ARGUS_PRESET_TYPE_HOME ); + if( TK ) { + if ( !m_bCameraOnHomePosition ) { + //LOG("Go Home!"); + //LOG( m_sCamData.home_token ); + if( !m_pProtocol->goPreset( TK )){ + LOG_ERROR("Cannot Issue goPreset Command!"); + }; + m_bCameraOnHomePosition = true; }; }; setWM( CAM_WS_READY ); break; }; + case CAM_WS_GO_PRESET:{ + //if( m_sCamData.home_token[0] != (char)0 ) { + // LOG("Go Home!"); + // LOG( m_sCamData.home_token ); + // if( !m_pProtocol->goPreset( m_sCamData.home_token )){ + // LOG_ERROR("Cannot Issue goPreset Command!"); + // }; + //}; + setWM( CAM_WS_READY ); + break; + }; + case CAM_WS_SET_PRESET:{ + //if( m_sCamData.home_token[0] != (char)0 ) { + // LOG("Go Home!"); + // LOG( m_sCamData.home_token ); + // if( !m_pProtocol->goPreset( m_sCamData.home_token )){ + // LOG_ERROR("Cannot Issue goPreset Command!"); + // }; + //}; + setWM( CAM_WS_READY ); + break; + }; case CAM_WS_BUSY:{ //Handle Operation TO setWM( CAM_WS_READY ); @@ -1091,7 +1238,19 @@ void deviceNodeCamera::m_fThreadProc( void ){ setWM( CAM_WS_GO_ABS_POSITION ); } else { //Idle Work ---> - if( m_sCamData.homing_enable ){ + if ( m_sCamData.eco_ir ) { + m_mIRProtector.lock(); + if( m_bIRIsOn ){ + if ( m_bIRTO ) { + if ( bNewSecondLoop ) m_bIRTO--; + } else { + CSTR TK = getPresetToken( ARGUS_PRESET_TYPE_IR_OFF ); + if ( TK ) if( m_pProtocol->goPreset( TK ) ) m_bIRIsOn = false; + }; + }; + m_mIRProtector.unlock(); + }; + if (m_sCamData.homing_enable) { if ( bNewSecondLoop ) { if ( m_nHomingCounter < m_sCamData.homing_to ) { m_nHomingCounter++; @@ -1152,7 +1311,7 @@ void deviceNodeCamera::m_fThreadProc( void ){ tTASK->CMD = NULL; }; } else { - LOG("No Movement -> INSTCAP" ); + LOG("No Movement -> INSTCAP" ); // No Movement -> Just Capture if( m_pBEH ){ EVENT_CONTAINER *tEVT = createBasicEvent( @@ -1181,17 +1340,74 @@ void deviceNodeCamera::m_fThreadProc( void ){ if( ( PUSHED->CMD & ARGUS_CAM_PCMD_CMD_MASK ) == ARGUS_CAM_PCMD_CMD_MASK ) { switch( PUSHED->CMD ) { case 0x80:{ - //m_bWM = ANODE_WM_2D_ISSUE_FULL_RESET; + //Call Home Preset + LOG("CALL HOME PRESET!"); + CSTR TK = getPresetToken(ARGUS_PRESET_TYPE_HOME); + if ( TK ) { + LOG(TK); + if( m_pProtocol->goPreset( TK )){ + m_bCameraOnHomePosition = true; + m_nHomingCounter = 0; + }; + }; break; }; case 0x81:{ - //m_bWM = ANODE_WM_2D_GET_FAST_DRAW; + //Call IR On Preset + LOG("CALL IR ON PRESET!"); + m_mIRProtector.lock(); + CSTR TK = getPresetToken(ARGUS_PRESET_TYPE_IR_ON); + if ( TK ) { + LOG(TK); + if( m_pProtocol->goPreset( TK )){ + m_bIRIsOn = true; + m_bIRTO = DEFAULT_SHINE_ON_TARGET_TO; + }; + } else LOG("PRESET NOT FOUND!"); + m_mIRProtector.unlock(); break; }; case 0x82:{ + //Call IR Off Preset + LOG("CALL IR OFF PRESET!"); + m_mIRProtector.lock(); + CSTR TK = ( m_sCamData.eco_ir )?getPresetToken(ARGUS_PRESET_TYPE_IR_OFF):getPresetToken(ARGUS_PRESET_TYPE_IR_AUTO); + if ( TK ) { + LOG(TK); + if( m_pProtocol->goPreset( TK )){ + m_bIRIsOn = false; + m_bIRTO = 0; + }; + } else LOG("PRESET NOT FOUND!"); + m_mIRProtector.unlock(); + break; + }; + case 0x83:{ + //Call IR Auto Preset + LOG("CALL IR AUTO PRESET!"); + m_mIRProtector.lock(); + CSTR TK = getPresetToken(ARGUS_PRESET_TYPE_IR_AUTO); + if ( TK ) { + LOG(TK); + if( m_pProtocol->goPreset( TK )){ + m_bIRIsOn = true; + m_bIRTO = DEFAULT_SHINE_ON_TARGET_TO; + }; + } else LOG("PRESET NOT FOUND!"); + m_mIRProtector.unlock(); + break; + }; + case 0x84:{ + //Call Wisher Preset + LOG("CALL WIPER PRESET!"); + CSTR TK = getPresetToken(ARGUS_PRESET_TYPE_IR_WISHER); + if ( TK ) { + LOG(TK); + m_pProtocol->goPreset( TK ); + }; break; }; - }; //?? Check if we don't miss something!! + }; } else if ( tState == CAM_WS_READY || tState == CAM_WS_AUTOMATED_MOVE ){ //No Way to get here //Direct Movment Mode if( PUSHED->CMD == ARGUS_CAM_PCMD_STOP ) { @@ -1235,7 +1451,7 @@ bool deviceNodeCamera::testFOV( C3D_DECART L ){ systemAnchor* tSystem = systemAnchor::getInstance(); if ( tSystem == NULL ) return false; C3D_SPH_DEGREES SL; -#ifdef DEBUG +#ifdef DEBUG_EXTRA LOG("Test FOV local Decart coords"); #endif if( !tSystem->convertToLocal( &m_oPosition, L, SL ) ) return false; @@ -1247,7 +1463,7 @@ bool deviceNodeCamera::testFOV( C3D_WGS84_LOC L ){ systemAnchor* tSystem = systemAnchor::getInstance(); if ( tSystem == NULL ) return false; C3D_SPH_DEGREES SL; -#ifdef DEBUG +#ifdef DEBUG_EXTRA LOG("Test FOV WGS coords"); #endif if( !tSystem->convertToLocal( &m_oPosition, L, SL ) ) return false; @@ -1257,7 +1473,7 @@ bool deviceNodeCamera::testFOV( C3D_WGS84_LOC L ){ bool deviceNodeCamera::testFOV( C3D_SPH_RADIANS L ){ //Local Coords C3D_SPH_DEGREES SL; -#ifdef DEBUG +#ifdef DEBUG_EXTRA LOG("Test FOV local Spherical(rad) coords"); #endif spherical2spherical( L, SL ); @@ -1268,13 +1484,13 @@ bool deviceNodeCamera::testFOV( C3D_SPH_DEGREES SL ){ #ifdef DEBUG char tB[128]; #endif -#ifdef DEBUG +#ifdef DEBUG_EXTRA LOG("Test FOV local Spherical(deg) coords"); #endif switch ( m_sCamData.triggering_mode ) { case CAM_TRIGGER_STRICT:{ if( SL.r > m_fMaxRange || SL.r < m_fMinRange ){ -#ifdef DEBUG +#ifdef DEBUG_EXTRA sprintf( tB, "Target Range( %.3f.m ) is not in a Range %.3f.m <-> %.3f.m", SL.r, m_fMinRange, m_fMaxRange ); LOG( tB ); #endif @@ -1284,7 +1500,7 @@ bool deviceNodeCamera::testFOV( C3D_SPH_DEGREES SL ){ }; case CAM_TRIGGER_ALL_NEAR:{ if( SL.r > m_fMaxRange ){ -#ifdef DEBUG +#ifdef DEBUG_EXTRA sprintf( tB, "Target Range( %.3f.m ) is not in a Range %.3f.m <-> %.3f.m", SL.r, m_fMinRange, m_fMaxRange ); LOG( tB ); #endif @@ -1294,7 +1510,7 @@ bool deviceNodeCamera::testFOV( C3D_SPH_DEGREES SL ){ }; case CAM_TRIGGER_ALL_FAR:{ if( SL.r < m_fMinRange ){ -#ifdef DEBUG +#ifdef DEBUG_EXTRA sprintf( tB, "Target Range( %.3f.m ) is not in a Range %.3f.m <-> %.3f.m", SL.r, m_fMinRange, m_fMaxRange ); LOG( tB ); #endif @@ -1325,7 +1541,7 @@ bool deviceNodeCamera::testFOV( C3D_SPH_DEGREES SL ){ // Regular Pan float tFOV = 0.5f * ( m_fMinHFov + ( SL.r - m_fMinRange ) * m_fR2FL ); float tRad = deg2rad( SL.fi ); -#ifdef DEBUG +#ifdef DEBUG_EXTRA sprintf( tB, "FOV: %0.3f CC: %0.3f", tFOV, tRad ); LOG( tB ); #endif @@ -1413,6 +1629,19 @@ bool deviceNodeCamera::lookAt( uint32_t TargetRefID, C3D_SPH_DEGREES L ){ // return absoluteMove( TargetRefID, LL ); //}; // Camera is Busy + if( m_bShineOnTarget ){ + m_mIRProtector.lock(); + if ( !m_bIRIsOn ) { + CSTR TK = getPresetToken(ARGUS_PRESET_TYPE_IR_AUTO); + if ( TK ) { + if( m_pProtocol->goPreset( TK )){ + m_bIRIsOn = true; + m_bIRTO = DEFAULT_SHINE_ON_TARGET_TO; + }; + }; + } else m_bIRTO = DEFAULT_SHINE_ON_TARGET_TO; + m_mIRProtector.unlock(); + }; return fusion_consumeData(TargetRefID, L); }; @@ -1589,6 +1818,7 @@ bool deviceNodeCamera::validateStream( void ){ }; bool deviceNodeCamera::validate(){ + if ( m_pDBC == NULL ) return false; DBC_CAM_DATA *tDATA = m_pDBC->getCamData( m_sCamData.id ); if ( tDATA == NULL ) return false; if ( memcmp( tDATA, &m_sCamData, sizeof(DBC_CAM_DATA) ) != 0 ) { @@ -1600,6 +1830,62 @@ bool deviceNodeCamera::validate(){ return deviceNode::validate(); }; +bool deviceNodeCamera::load_presets( void ){ + bool bHaveIROFF = false; + bool bHaveIRON = false; + bool bHaveIRAUTO = false; + if ( m_pDBC == NULL ) return false; + LOG("Loading Presets!"); + DBC_PRESETS_INFO *tData = m_pDBC->getCamPresetInfo(m_sCamData.id); + if ( tData ) { + memcpy( &m_sCamPresets, tData, sizeof(DBC_PRESETS_INFO)); + DBC_INT_LIST *tList = m_pDBC->listCamPresets( m_sCamData.id ); + if ( tList ) { + for( DBC_INT_LIST::iterator idx= tList->begin(); idx < tList->end(); idx++ ) { + CAM_PRESET *tData = m_pDBC->getCamPreset( *idx ); + if ( tData ) { + m_sCamPresets.presets.push_back(tData); + bHaveIRON = ( tData->role == ARGUS_PRESET_TYPE_IR_ON )?true:bHaveIRON; + bHaveIROFF = ( tData->role == ARGUS_PRESET_TYPE_IR_OFF )?true:bHaveIROFF; + bHaveIRAUTO = ( tData->role == ARGUS_PRESET_TYPE_IR_AUTO )?true:bHaveIRAUTO; + }; + }; + delete(tList); + }; + if ( m_sCamData.eco_ir ) { + m_bShineOnTarget = (bHaveIROFF && bHaveIRAUTO); + } else m_bShineOnTarget = false; + return true; + }; + return false; +}; + +void deviceNodeCamera::translateROI2PRESET( float P, float T, float Z, uint8_t &col, uint8_t &row ){ + float kRange = 1.0f / ((float)m_sCamPresets.gRows); + row = (uint8_t) ( Z / kRange ); + float kAz = 2.0f / ( (float) (m_sCamPresets.gCols * ( 1 << row )) ); + row++; + P = 0.5f + ( -1.0f * P ); + if ( P > 1.0f ) P = P - 2.0f; + P = P + 1.0f; + col = (uint8_t) ( P / kAz ); +}; + +CSTR deviceNodeCamera::getPresetToken( uint8_t CCOL, uint8_t CROW ){ + if( m_sCamPresets.presets.size() > 0 ) + for (V_PRESETS::iterator idx = m_sCamPresets.presets.begin(); idx < m_sCamPresets.presets.end(); idx++) + if ( (*idx)->role == ARGUS_PRESET_TYPE_POSITION ) + if ( ( (*idx)->row == CROW ) && ( (*idx)->col == CCOL ) ) return (CSTR)(*idx)->token; + return NULL; +}; + +CSTR deviceNodeCamera::getPresetToken( uint8_t specialRole ){ + if( m_sCamPresets.presets.size() > 0 ) + for ( V_PRESETS::iterator idx = m_sCamPresets.presets.begin(); idx < m_sCamPresets.presets.end(); idx++ ) + if ( (*idx)->role == specialRole ) return (CSTR)(*idx)->token; + return NULL; +}; + #undef LOG #undef LOG_ERROR diff --git a/lib/App/common/deviceNodeCamera.h b/lib/App/common/deviceNodeCamera.h index 0f479e9b..0db85169 100644 --- a/lib/App/common/deviceNodeCamera.h +++ b/lib/App/common/deviceNodeCamera.h @@ -43,6 +43,15 @@ #define ARGUS_CAM_PCMD_CMD_MASK 0x80 #define ARGUS_CAM_PCMD_STOP 1 +#define ARGUS_PRESET_TYPE_POSITION 1 +#define ARGUS_PRESET_TYPE_HOME 2 +#define ARGUS_PRESET_TYPE_IR_AUTO 3 +#define ARGUS_PRESET_TYPE_IR_ON 4 +#define ARGUS_PRESET_TYPE_IR_OFF 5 +#define ARGUS_PRESET_TYPE_IR_WISHER 6 + +#define DEFAULT_SHINE_ON_TARGET_TO 60 // seconds + typedef struct S_CAM_PTZ_CMD{ uint8_t CMD; @@ -56,9 +65,12 @@ typedef enum E_CAM_PTZ_CMD{ PTZ_MOVE = 1, PTZ_ABSOLUTE = 2, PTZ_RELOAD_CAMERA = 3, - PTZ_CAPTURE_ONLY = 4 + PTZ_CAPTURE_ONLY = 4, + PTZ_SET_PRESET = 5, + PTZ_CALL_PRESET = 6 }PTZ_CMD; + typedef std::queue CAM_PTZ_CMD_QUEUE; typedef enum E_CAM_WORKING_STATE{ @@ -73,6 +85,7 @@ typedef enum E_CAM_WORKING_STATE{ CAM_WS_GO_HOMING_PRESET = 13, CAM_WS_GO_PRESET = 14, CAM_WS_GO_ABS_ROI = 15, + CAM_WS_SET_PRESET = 16, CAM_WS_READY = 64, CAM_WS_BUSY = 128, CAM_WS_WAIT_ONPOS = 129, @@ -91,6 +104,8 @@ typedef std::queue CAM_TASK_QUEUE; #define LOSE_INTERES_TIME_MS 2000 + + inline CAM_ROI *createCAM_ROI( void ){ CAM_ROI * tROI = (CAM_ROI*)malloc(sizeof(CAM_ROI)); if( tROI ){ @@ -142,6 +157,8 @@ class deviceNodeCamera: public deviceNode, public basicThread { uint32_t m_nRelativeMoveCounter; uint32_t m_nHomingCounter; uint8_t m_bRelativeMoveMatrix; + uint8_t m_bCurrentPresetCol; + uint8_t m_bCurrentPresetRow; float m_fSpeedRise; float m_fRM_Pan; float m_fRM_Tilt; @@ -152,12 +169,32 @@ class deviceNodeCamera: public deviceNode, public basicThread { float m_fCP_Zoom; bool m_bSkeepPositioningWait; + bool m_bNoAbsPositionning; + //IR functionality + basicMutex m_mIRProtector; + bool m_bShineOnTarget; + bool m_bIRIsOn; + uint8_t m_bIRTO; // Default 60 seconds (1 video slice) + // + bool m_bCameraOnHomePosition; + /* Methotds Sutable to Control Camera */ bool relativeMove( float PanSPD, float TiltSPD, float ZoomSPD ); bool relativeStop(); bool absoluteMove( uint32_t RefID, float PanPOS, float TiltPOS, float ZoomPOS ); bool absoluteMove( uint32_t RefID, C3D_ORIENT_ONVIF O ); + void updateOpticalParameters( uint16_t frame_width, uint16_t frame_heigth ); + void translateROI2PRESET( float P, float T, float Z, uint8_t &col, uint8_t &row ); + protected: + DBC_CAM_DATA m_sCamData; + MEDIA_SOURCE_DESC m_sMediaSource; + basicEventHeap * m_pBEH; + //bool m_bSourceConnected; + //uint32_t m_nActiveStreamID; + //bool inTheFOV( float lat, float lon, float alt ); + + /* tracking Fusion methods */ vCAM_ROIS m_vROIS; basicMutex m_mROIsProtector; @@ -167,14 +204,14 @@ class deviceNodeCamera: public deviceNode, public basicThread { void fusion_validate( void ); CAM_ROI * fusion_fetchROI( void ); DBC_SNAPSHOT_DATA * fusion_translate_ROI( CAM_ROI *(&ptr) ); - void updateOpticalParameters( uint16_t frame_width, uint16_t frame_heigth ); - protected: - DBC_CAM_DATA m_sCamData; - MEDIA_SOURCE_DESC m_sMediaSource; - basicEventHeap * m_pBEH; - //bool m_bSourceConnected; - //uint32_t m_nActiveStreamID; - //bool inTheFOV( float lat, float lon, float alt ); + + /* presets Fusion methods */ + + CAM_PRESETS_SET m_sCamPresets; + virtual bool load_presets( void ); + + CSTR getPresetToken( uint8_t CCOL, uint8_t CROW ); + CSTR getPresetToken( uint8_t specialRole ); bool testFOV( C3D_WGS84_LOC ); //Global Coords bool testFOV( C3D_DECART ); //System Coords diff --git a/lib/App/common/deviceNodeFactory.cpp b/lib/App/common/deviceNodeFactory.cpp index 97d16e33..97c3e083 100644 --- a/lib/App/common/deviceNodeFactory.cpp +++ b/lib/App/common/deviceNodeFactory.cpp @@ -7,6 +7,7 @@ #include "deviceNode3D.h" #include "deviceNode2D.h" #include "deviceNodePTZCamControl.h" +#include "deviceNodePresetCamControl.h" #include "deviceNodeStaticCamControl.h" #include "deviceNodeEthernet2Serial.h" @@ -70,6 +71,16 @@ bool deviceNodeFactory::unloadNodes( void ){ delete( (deviceNodeStaticCamControl*) (*index) ); break; }; + case ARGUS_IP_PRESET_CAMERA:{ + LOG(" Preset IP Cam"); + delete( (deviceNodePresetCamControl*) (*index) ); + break; + }; + case ARGUS_ANALOG_PRESET_CAMERA:{ + LOG(" Preset Analog Cam"); + //delete( (deviceNodeStaticCamControl*) (*index) ); + break; + }; case ARGUS_IP_UART_GATEWAY:{ LOG(" UART Gateway"); delete( (deviceETH2UART*) (*index) ); @@ -236,6 +247,31 @@ deviceNode *deviceNodeFactory::createNode( uint32_t id ){ } else { #ifdef DEBUG LOG_ERROR("Error Starting Service!"); +#endif + delete( tCamera ); + }; + }; + break; + }; + case ARGUS_IP_PRESET_CAMERA:{ + +#ifdef DEBUG + LOG("Creating IP Preset Camera"); +#endif + deviceNodePresetCamControl *tCamera; + tCamera = new deviceNodePresetCamControl( id ); + if( tCamera ) { +#ifdef DEBUG + LOG("Starting Service"); +#endif + if( tCamera->startService() ){ + tVal = ( deviceNode *) tCamera; +#ifdef DEBUG + LOG("Success"); +#endif + } else { +#ifdef DEBUG + LOG_ERROR("Error Starting Service!"); #endif delete( tCamera ); }; diff --git a/lib/App/common/deviceNodePTZCamControl.cpp b/lib/App/common/deviceNodePTZCamControl.cpp index 2bbfd008..2db3bae2 100644 --- a/lib/App/common/deviceNodePTZCamControl.cpp +++ b/lib/App/common/deviceNodePTZCamControl.cpp @@ -27,10 +27,14 @@ bool deviceNodePTZCamControl::stopService(){ -void deviceNodePTZCamControl::dispatchEvent( EVENT_CONTAINER *E ){ - if( E == NULL ) return; +bool deviceNodePTZCamControl::dispatchEvent( EVENT_CONTAINER *E ){ + if( E == NULL ) return false; //if( !m_sCamData.online ) return; //if( m_bBusy ) return; + if ( m_sCamData.prefered_events_only ) { + //Check if we eligable dest of event + if( E->m_nDestinationNodeID != m_sNodeData.node_id ) return true; + }; switch( E->m_eClass ) { case EVT_CLASS_SENSOR_CLD: case EVT_CLASS_SENSOR_LGS: @@ -74,6 +78,7 @@ void deviceNodePTZCamControl::dispatchEvent( EVENT_CONTAINER *E ){ break; }; }; + return true; }; bool deviceNodePTZCamControl::validate(){ diff --git a/lib/App/common/deviceNodePTZCamControl.h b/lib/App/common/deviceNodePTZCamControl.h index 6f47fa4a..8ddb6b92 100644 --- a/lib/App/common/deviceNodePTZCamControl.h +++ b/lib/App/common/deviceNodePTZCamControl.h @@ -35,7 +35,7 @@ class deviceNodePTZCamControl: public deviceNodeCamera, public basicEventHandler explicit deviceNodePTZCamControl( uint32_t id ); explicit deviceNodePTZCamControl( DBC_NODE_DATA *Data = NULL ); ~deviceNodePTZCamControl(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); virtual bool startService(); virtual bool stopService(); virtual bool validate(); diff --git a/lib/App/common/deviceNodePresetCamControl.cpp b/lib/App/common/deviceNodePresetCamControl.cpp new file mode 100644 index 00000000..922a3841 --- /dev/null +++ b/lib/App/common/deviceNodePresetCamControl.cpp @@ -0,0 +1,125 @@ +#include "deviceNodePresetCamControl.h" +#include "../mojo/mojoKernel.h" +#define LOG( X ) deviceNode::m_pLog->Log( "PRST_CAM", this, X ) +#define LOG_ERROR( X ) deviceNode::m_pLog->Log( "PRST_CAM", this, _LOG_ERROR, X ) + +deviceNodePresetCamControl::deviceNodePresetCamControl( DBC_NODE_DATA *Data ): deviceNodeCamera( Data ), basicEventHandler(){ +}; + +deviceNodePresetCamControl::deviceNodePresetCamControl( uint32_t id ): deviceNodeCamera( id ), basicEventHandler(){ + m_sMediaSource.mediaSourceId = m_sNodeData.aux_id; + strncpy( m_sMediaSource.mediaName, m_sNodeData.name, 128 ); + m_sMediaSource.mediaName[127] = (char)0; + memset( &m_sCtrlData, 0, sizeof( CAMERA_CTRL_DATA )); +}; + +deviceNodePresetCamControl::~deviceNodePresetCamControl(){ + stopService(); +}; + +bool deviceNodePresetCamControl::startService(){ + return create(); +}; + +bool deviceNodePresetCamControl::stopService(){ + return true; +}; + +bool deviceNodePresetCamControl::dispatchEvent( EVENT_CONTAINER *E ){ + if( E == NULL ) return false; + //if( !m_sCamData.online ) return; + //if( m_bBusy ) return; + if ( m_sCamData.prefered_events_only ) { + //Check if we eligable dest of event + if( E->m_nDestinationNodeID != m_sNodeData.node_id ) return true; + }; + switch (E->m_eClass) { + case EVT_CLASS_SENSOR_CLD: + case EVT_CLASS_SENSOR_LGS: + case EVT_CLASS_SENSOR_LFS: + case EVT_CLASS_SENSOR_MND: + case EVT_CLASS_SENSOR_PLS_210: + case EVT_CLASS_SENSOR_PLS_360: + case EVT_CLASS_SENSOR_ALS: + case EVT_CLASS_SENSOR_3D: + case EVT_CLASS_SENSOR_ACC:{ + switch( E->m_eType ) { + case EVT_ROI_ACTIVE:{ + TARGET_DATA *tDATA; + tDATA = (TARGET_DATA *)E->m_pEvtData; + if( tDATA ) { + lookAt( E->m_db_id, tDATA->system_target ); + }; + break; + }; + case EVT_TARGET_1D: + case EVT_TARGET_2D_BLACK: + case EVT_TARGET_2D_WHITE: + case EVT_TARGET_3D_BLACK: + case EVT_TARGET_3D_WHITE:{ + TARGET_DATA *tDATA; + tDATA = (TARGET_DATA *)E->m_pEvtData; + if( tDATA ) { +#ifdef DEBUG_EXTRA + LOG( "CHECK CAMERA FOV" ); +#endif + if( testFOV(tDATA->system_target) ){ +#ifdef DEBUG_EXTRA + LOG("TARGET IN CAMERA FOV"); +#endif + lookAt( E->m_db_id, tDATA->system_target ); + }; + }; + break; + }; + }; + break; + }; + }; + return true;//Propogate Event +}; + +bool deviceNodePresetCamControl::validate(){ +#ifdef DEBUG_EXTRA + LOG("VALIDATE"); +#endif + if( CAM_WS_END == getWM() ) return false; + // Validate Camera Settings + /*{ + DBC_CAM_DATA *tDATA = argusNetNode::m_pDBC->getCamData( m_sNodeData.aux_id ); + if( tDATA ) { + if( memcmp( &m_sCamData, tDATA, sizeof(DBC_CAM_DATA)) != 0 ){ + free( tDATA ); + LOG("Cam Settings Changed!"); + return false; + }; + free( tDATA ); + } else{ + LOG("Cam Deleted!"); + return false; + }; + }*/ + // Validate Stream - > moved to Video Encoder! + /* + { + if( m_sNodeData.aux_parameter ) { +#ifdef DEBUG_EXTRA + LOG("VALIDATE Stream"); +#endif + if( !m_bSourceConnected ) { + if( connectToStream( m_sNodeData.aux_parameter ) ) { + argusNetNode::m_pDBC->setStreamValid( m_sNodeData.aux_parameter ); + } else { + argusNetNode::m_pDBC->setStreamValid( m_sNodeData.aux_parameter, false ); + }; + } else { + validateStream(); + }; + }; + } + */ + return deviceNodeCamera::validate(); +}; + +#undef LOG +#undef LOG_ERROR diff --git a/lib/App/common/deviceNodePresetCamControl.h b/lib/App/common/deviceNodePresetCamControl.h new file mode 100644 index 00000000..803e8181 --- /dev/null +++ b/lib/App/common/deviceNodePresetCamControl.h @@ -0,0 +1,41 @@ +//---------------------------------------------------------------------------- +// Dr.Frucht Systems Ltd. +// Copyright © 2000-2017. All Rights Reserved. +// Version 2.0 6/11/2019 +// Last modification: 6/11/2019 +// PROJECT: +// SUBSYSTEM: +// FILE: rgooseIPCamera.h +// AUTHOR: gagua +// OVERVIEW +// ~~~~~~~~ +// Header file of rgooseIPCamera.h +//---------------------------------------------------------------------------- +// +#ifndef __DEVICE_PRESET_CAMERA_CTRL_HEADER__ +#define __DEVICE_PRESET_CAMERA_CTRL_HEADER__ + +#include "deviceNodeCamera.h" +#include "../../components/base/basicEventHandler.h" +#include "../../components/base/basicEventHeap.h" + +//https://www.ebay.com/itm/Professional-Rolling-Makeup-Case-Bulb-Mirror-Cosmetic-Artist-Dressing-Train-Case/233264525474 + +//ffmpeg -i input.mp4 -af loudnorm=I=-23:LRA=7:tp=-2:print_format=json -f null - +//ffmpeg -i input.mp4 -af loudnorm=I=-23:LRA=7:tp=-2:measured_I=-30:measured_LRA=1.1:measured_tp=-11 04:measured_thresh=-40.21:offset=-0.47 -ar 48k -y output.mp4 + +class deviceNodePresetCamControl: public deviceNodeCamera, public basicEventHandler { + protected: + CAMERA_CTRL_DATA m_sCtrlData; + + public: + explicit deviceNodePresetCamControl( uint32_t id ); + explicit deviceNodePresetCamControl( DBC_NODE_DATA *Data = NULL ); + ~deviceNodePresetCamControl(); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool startService(); + virtual bool stopService(); + virtual bool validate(); +}; + +#endif diff --git a/lib/App/common/deviceNodeStaticCamControl.cpp b/lib/App/common/deviceNodeStaticCamControl.cpp index dd784e76..87a68ddf 100644 --- a/lib/App/common/deviceNodeStaticCamControl.cpp +++ b/lib/App/common/deviceNodeStaticCamControl.cpp @@ -58,10 +58,14 @@ bool deviceNodeStaticCamControl::stopService(){ return true; }; -void deviceNodeStaticCamControl::dispatchEvent( EVENT_CONTAINER *E ){ - if( E == NULL ) return; +bool deviceNodeStaticCamControl::dispatchEvent( EVENT_CONTAINER *E ){ + if( E == NULL ) return false; //if( !m_bSourceConnected ) return; //if( m_bBusy ) return; + if ( m_sCamData.prefered_events_only ) { + //Check if we eligable dest of event + if( E->m_nDestinationNodeID != m_sNodeData.node_id ) return true; + }; switch( E->m_eClass ) { case EVT_CLASS_SENSOR_CLD: case EVT_CLASS_SENSOR_LGS: @@ -98,6 +102,7 @@ void deviceNodeStaticCamControl::dispatchEvent( EVENT_CONTAINER *E ){ break; }; }; + return true; }; bool deviceNodeStaticCamControl::validate(){ diff --git a/lib/App/common/deviceNodeStaticCamControl.h b/lib/App/common/deviceNodeStaticCamControl.h index d00e400a..33b2a4a9 100644 --- a/lib/App/common/deviceNodeStaticCamControl.h +++ b/lib/App/common/deviceNodeStaticCamControl.h @@ -35,7 +35,7 @@ class deviceNodeStaticCamControl: public deviceNodeCamera, public basicEventHand explicit deviceNodeStaticCamControl( uint32_t id ); explicit deviceNodeStaticCamControl( DBC_NODE_DATA *Data ); virtual ~deviceNodeStaticCamControl(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); virtual bool startService(); virtual bool stopService(); virtual bool validate(); diff --git a/lib/App/common/kernelModule.h b/lib/App/common/kernelModule.h index eb7ff085..68208ba6 100644 --- a/lib/App/common/kernelModule.h +++ b/lib/App/common/kernelModule.h @@ -50,7 +50,7 @@ class kernelModule: public basicEventHandler, public basicEngine{ virtual bool startService(){ return false; }; virtual bool stopService( bool force = false ){ return true; }; virtual bool validate(){ return false; }; - virtual void dispatchEvent( EVENT_CONTAINER *Evt ){}; + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){ return true; }; }; typedef std::vector vectorKernelModules; diff --git a/lib/App/common/kernelModuleEmbedVideo.cpp b/lib/App/common/kernelModuleEmbedVideo.cpp index b8290e18..32c15bcb 100644 --- a/lib/App/common/kernelModuleEmbedVideo.cpp +++ b/lib/App/common/kernelModuleEmbedVideo.cpp @@ -1365,7 +1365,7 @@ bool kernelModuleEmbedVideo::registerForMediaStream( uint32_t id, WEB_CLIENT_CTX return false; }; -void kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ +bool kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ if( Evt ) { switch( Evt->m_eClass ) { case EVT_CLASS_IMAGE: @@ -1398,22 +1398,32 @@ void kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ case EVT_CLASS_CAMERA_CTRL:{ switch ( Evt->m_eType ) { case EVT_CAMERA_MOVE_TO:{ -#ifdef DEBUG +#ifdef DEBUG_EXTRA LOG("Cam OnMove After Event -> Register SourceID"); #endif uint32_t sid = m_pDBC->getNodeAuxParam( Evt->m_nSourceNodeID ); if ( sid ) { +#ifdef DEBUG_EXTRA LOG("Source ID found!"); +#endif m_mStreamHandlersProtector.lock(); +#ifdef DEBUG_EXTRA LOG("Mutex Locked!"); +#endif mapSTREAMHANDLERS::iterator hnd = m_mapHANDLERS.find( sid ); if( hnd != m_mapHANDLERS.end() ){ +#ifdef DEBUG_EXTRA LOG("Handler found!"); +#endif (*hnd).second->triggerCamMove(); +#ifdef DEBUG_EXTRA LOG("Triggered!"); +#endif } else LOG("No Stream Found!"); m_mStreamHandlersProtector.unlock(); +#ifdef DEBUG_EXTRA LOG("Mutex Unlocked!"); +#endif } else LOG("No Stream ID Found!"); break; }; @@ -1434,7 +1444,9 @@ void kernelModuleEmbedVideo::dispatchEvent( EVENT_CONTAINER *Evt ){ break; }; }; + return true; }; + return false; }; //https://www.ps2-home.com/forum/viewtopic.php?t=98 //https://www.mikekohn.net/software/playstation2.php diff --git a/lib/App/common/kernelModuleEmbedVideo.h b/lib/App/common/kernelModuleEmbedVideo.h index 7d750b58..9c9593e6 100644 --- a/lib/App/common/kernelModuleEmbedVideo.h +++ b/lib/App/common/kernelModuleEmbedVideo.h @@ -449,7 +449,7 @@ class kernelModuleEmbedVideo: public kernelModule, public basicDualThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); virtual bool validate(); /* from Media Destination * / virtual bool pushFrame( AVFrame *Frame, void* src = NULL); diff --git a/lib/App/common/kernelModuleFlyHunter.cpp b/lib/App/common/kernelModuleFlyHunter.cpp index 3969b274..3c806300 100644 --- a/lib/App/common/kernelModuleFlyHunter.cpp +++ b/lib/App/common/kernelModuleFlyHunter.cpp @@ -357,12 +357,9 @@ void kernelModuleFlyHunter::m_fThreadProc(){ }; }; -void kernelModuleFlyHunter::dispatchEvent(EVENT_CONTAINER *Evt){ - if(!m_bEnabled) { - LOG("Module Disabled!"); - return; - } - if( Evt == NULL ) return; +bool kernelModuleFlyHunter::dispatchEvent(EVENT_CONTAINER *Evt){ + if(!m_bEnabled) return true; + if( Evt == NULL ) return false; switch( Evt->m_eClass ){ case EVT_CLASS_EXTERNAL_CMD:{ switch( Evt->m_eType ) { @@ -463,6 +460,7 @@ void kernelModuleFlyHunter::dispatchEvent(EVENT_CONTAINER *Evt){ break; }; }; + return true; }; bool kernelModuleFlyHunter::reloadSettings(){ diff --git a/lib/App/common/kernelModuleFlyHunter.h b/lib/App/common/kernelModuleFlyHunter.h index 45b36d36..07e11d56 100644 --- a/lib/App/common/kernelModuleFlyHunter.h +++ b/lib/App/common/kernelModuleFlyHunter.h @@ -68,6 +68,6 @@ class kernelModuleFlyHunter: public kernelModule, public basicThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); }; #endif diff --git a/lib/App/common/kernelModuleKafka.cpp b/lib/App/common/kernelModuleKafka.cpp index aad5fe6a..23d00663 100644 --- a/lib/App/common/kernelModuleKafka.cpp +++ b/lib/App/common/kernelModuleKafka.cpp @@ -516,9 +516,9 @@ CSTR kernelModuleKafka::buildTemplate( return NULL; }; -void kernelModuleKafka::dispatchEvent( EVENT_CONTAINER *Evt ){ - if( Evt == NULL ) return; - if( !m_bEnabled ) return; +bool kernelModuleKafka::dispatchEvent( EVENT_CONTAINER *Evt ){ + if( Evt == NULL ) return false; + if( !m_bEnabled ) return true; #ifdef DEBUG char tBuffer[256]; sprintf( tBuffer, "Event Class %d Type %d ", Evt->m_eClass , Evt->m_eType ); @@ -753,6 +753,7 @@ void kernelModuleKafka::dispatchEvent( EVENT_CONTAINER *Evt ){ }; }; }; + return true; }; #undef LOG diff --git a/lib/App/common/kernelModuleKafka.h b/lib/App/common/kernelModuleKafka.h index f58a5e9c..892e2b45 100644 --- a/lib/App/common/kernelModuleKafka.h +++ b/lib/App/common/kernelModuleKafka.h @@ -79,7 +79,7 @@ class kernelModuleKafka: public kernelModule, public basicThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); }; diff --git a/lib/App/common/kernelModuleModemManager.cpp b/lib/App/common/kernelModuleModemManager.cpp index c9edc3f4..7d3fd6cb 100644 --- a/lib/App/common/kernelModuleModemManager.cpp +++ b/lib/App/common/kernelModuleModemManager.cpp @@ -64,7 +64,7 @@ void kernelModuleModemManager::m_fThreadProc( void ){ if ( nCurrentPhoneBookId < m_vPhoneBook.size() ) { DBC_MODEM_PHONEBOOK_RECORD *tRECORD = m_vPhoneBook.at( nCurrentPhoneBookId ); if ( tRECORD ) { - if( tRECORD->call_only ){ + if( tRECORD->mode == 2 ){ LOG("Start Call"); nCurrentCallId = startCall( tRECORD->number ); lNextWindowAction = getMilliseconds() + m_sMMData.call_hangup_wait * 1000; @@ -120,28 +120,36 @@ void kernelModuleModemManager::m_fThreadProc( void ){ }; }; -void kernelModuleModemManager::dispatchEvent(EVENT_CONTAINER *Evt){ +bool kernelModuleModemManager::dispatchEvent( EVENT_CONTAINER *Evt ){ if ( moduleActive ) { - if ( sessionStarted ) { - // Seek just Close Session EVT - if( Evt->m_eType == EVT_LRF_END_SESSION_TO || Evt->m_eType == EVT_LRF_END_SESSION_MA ){ - sessionStarted = false; + if( Evt == NULL ) return false; + if( Evt->m_eClass == EVT_CLASS_SYSTEM ){ + if( Evt->m_eType == EVT_LRF_START_SESSION ){ + //sessionStarted = true; + //setWM( MDM_INIT_CALL_WM ); }; - } else { - // React on All Events. - switch ( Evt->m_eType ) { - case EVT_TARGET_1D: - case EVT_TARGET_3D_WHITE: - case EVT_TARGET_3D_BLACK: - case EVT_TARGET_2D_WHITE: - case EVT_TARGET_2D_BLACK:{ - sessionStarted = true; - setWM( MDM_INIT_CALL_WM ); - break; - }; + if ( Evt->m_eType == EVT_LRF_END_SESSION_TO || Evt->m_eType == EVT_LRF_END_SESSION_MA ) { + + }; + }; + switch( Evt->m_eType ) { + case EVT_TARGET_1D: + case EVT_TARGET_3D_WHITE: + case EVT_TARGET_3D_BLACK: + case EVT_TARGET_2D_WHITE: + case EVT_TARGET_2D_BLACK:{ + sessionStarted = true; + setWM( MDM_INIT_CALL_WM ); + break; + }; + case EVT_LRF_END_SESSION_TO: + case EVT_LRF_END_SESSION_MA:{ + sessionStarted = false; + break; }; }; }; + return true; }; bool kernelModuleModemManager::validate(){ diff --git a/lib/App/common/kernelModuleModemManager.h b/lib/App/common/kernelModuleModemManager.h index 1d05bd6a..fba4b938 100644 --- a/lib/App/common/kernelModuleModemManager.h +++ b/lib/App/common/kernelModuleModemManager.h @@ -63,7 +63,7 @@ class kernelModuleModemManager: public kernelModule, public basicThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); virtual bool validate(); }; diff --git a/lib/App/common/kernelModuleOnvifObserver.cpp b/lib/App/common/kernelModuleOnvifObserver.cpp index 83a97b74..1019cd2d 100644 --- a/lib/App/common/kernelModuleOnvifObserver.cpp +++ b/lib/App/common/kernelModuleOnvifObserver.cpp @@ -343,15 +343,16 @@ void kernelModuleOnvifObserver::m_fThreadProc(){ m_bDetached = true; }; -void kernelModuleOnvifObserver::dispatchEvent(EVENT_CONTAINER *Evt){ +bool kernelModuleOnvifObserver::dispatchEvent(EVENT_CONTAINER *Evt){ if(!m_bEnabled) { #ifdef DEBUG LOG("Module Disabled!"); #endif - return; + return true; } - if( Evt == NULL ) return; + if( Evt == NULL ) return false; + return true; }; bool kernelModuleOnvifObserver::reloadSettings(){ diff --git a/lib/App/common/kernelModuleOnvifObserver.h b/lib/App/common/kernelModuleOnvifObserver.h index 13a3adfe..7c5c86a5 100644 --- a/lib/App/common/kernelModuleOnvifObserver.h +++ b/lib/App/common/kernelModuleOnvifObserver.h @@ -87,7 +87,7 @@ class kernelModuleOnvifObserver: public kernelModule, public basicThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); virtual bool validate(); }; diff --git a/lib/App/common/kernelModuleRemoteServer.h b/lib/App/common/kernelModuleRemoteServer.h index f95ca754..da8c212a 100644 --- a/lib/App/common/kernelModuleRemoteServer.h +++ b/lib/App/common/kernelModuleRemoteServer.h @@ -50,7 +50,7 @@ class kernelModuleRemoteServer: public kernelModule, public basicThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); }; diff --git a/lib/App/common/kernelModuleSSDP.cpp b/lib/App/common/kernelModuleSSDP.cpp index 61ef1586..6f875b2b 100644 --- a/lib/App/common/kernelModuleSSDP.cpp +++ b/lib/App/common/kernelModuleSSDP.cpp @@ -83,8 +83,8 @@ kernelModuleSSDPAnnouncer::~kernelModuleSSDPAnnouncer(){ if(m_sIcons.size) free(m_sIcons.array); }; -void kernelModuleSSDPAnnouncer::dispatchEvent( EVENT_CONTAINER *Evt ){ - +bool kernelModuleSSDPAnnouncer::dispatchEvent( EVENT_CONTAINER *Evt ){ + return true; }; bool kernelModuleSSDPAnnouncer::reloadSettings(){ diff --git a/lib/App/common/kernelModuleSSDP.h b/lib/App/common/kernelModuleSSDP.h index ee9d6f32..f23a05cd 100644 --- a/lib/App/common/kernelModuleSSDP.h +++ b/lib/App/common/kernelModuleSSDP.h @@ -205,7 +205,7 @@ class kernelModuleSSDPAnnouncer: public kernelModule, public basicThread { virtual bool reloadSettings(); virtual bool startService(); virtual bool stopService( bool force = false ); - virtual void dispatchEvent(EVENT_CONTAINER *Evt); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt); virtual bool validate(); }; #endif diff --git a/lib/App/common/kernelModuleUSBRelay.cpp b/lib/App/common/kernelModuleUSBRelay.cpp index c084a7b0..450a6cb6 100644 --- a/lib/App/common/kernelModuleUSBRelay.cpp +++ b/lib/App/common/kernelModuleUSBRelay.cpp @@ -308,8 +308,8 @@ kernelModuleUSBRelay::kernelModuleUSBRelay( uint32_t ModuleID ) : kernelModule( kernelModuleUSBRelay::~kernelModuleUSBRelay(){ }; -void kernelModuleUSBRelay::dispatchEvent( EVENT_CONTAINER *Evt ){ - +bool kernelModuleUSBRelay::dispatchEvent( EVENT_CONTAINER *Evt ){ + return true; }; diff --git a/lib/App/common/kernelModuleUSBRelay.h b/lib/App/common/kernelModuleUSBRelay.h index 725e618a..673980a6 100644 --- a/lib/App/common/kernelModuleUSBRelay.h +++ b/lib/App/common/kernelModuleUSBRelay.h @@ -35,6 +35,6 @@ class kernelModuleUSBRelay: public kernelModule { public: explicit kernelModuleUSBRelay( uint32_t ModuleID ); virtual ~kernelModuleUSBRelay(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); }; #endif \ No newline at end of file diff --git a/lib/App/common/kernelPrototype.h b/lib/App/common/kernelPrototype.h index 52e409df..fdc5ab60 100644 --- a/lib/App/common/kernelPrototype.h +++ b/lib/App/common/kernelPrototype.h @@ -84,7 +84,8 @@ class kernelPrototype: public basicThread, public basicEventHandler { kernelEventFilter * getFilter( uint32_t id ); #endif void WaitFinish( bool Force = false ); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ){}; + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){ return true; }; + virtual void startSession(){}; }; #endif \ No newline at end of file diff --git a/lib/App/mojo/mojoKernel.cpp b/lib/App/mojo/mojoKernel.cpp index 52f1ba90..8217f883 100644 --- a/lib/App/mojo/mojoKernel.cpp +++ b/lib/App/mojo/mojoKernel.cpp @@ -275,7 +275,8 @@ void mojoKernel::startSession(){ m_mSessionProtector.lock(); m_nNoAlarmCounter = 0; if( !m_bSessionStarted ) { - if ( m_bKeepLocalReport ) { + /* + if( m_bKeepLocalReport ){ DBC_EVT_RECORD tRecord; memset( &tRecord, 0, sizeof(DBC_EVT_RECORD)); uint64_t TS_64 = getMilliseconds() - 20; // -20 msec before @@ -292,6 +293,12 @@ void mojoKernel::startSession(){ }; m_pDBC->addEvent( &tRecord ); }; + */ + //Propogate Event + EVENT_CONTAINER *bEVT = createBasicEvent( m_nServerNodeID, EVT_CLASS_SYSTEM, EVT_LRF_START_SESSION, NULL, NULL, NULL); + if ( bEVT ) { + m_pEventHeap->broadcast( bEVT ); + }; m_bSessionStarted = true; }; m_mSessionProtector.unlock(); @@ -300,6 +307,7 @@ void mojoKernel::startSession(){ void mojoKernel::stopSession( bool forced ){ m_mSessionProtector.lock(); if( m_bSessionStarted ){ + /* if ( m_bKeepLocalReport ) { DBC_EVT_RECORD tRecord; memset( &tRecord, 0, sizeof(DBC_EVT_RECORD)); @@ -316,6 +324,12 @@ void mojoKernel::stopSession( bool forced ){ memset( tRecord.uuid, 0, 65 ); }; m_pDBC->addEvent( &tRecord ); + }; + */ + //Propogate Event + EVENT_CONTAINER *bEVT = createBasicEvent( m_nServerNodeID, EVT_CLASS_SYSTEM, (forced?EVT_LRF_END_SESSION_MA:EVT_LRF_END_SESSION_TO), NULL, NULL, NULL); + if ( bEVT ) { + m_pEventHeap->broadcast( bEVT ); }; m_bSessionStarted = false; }; @@ -636,12 +650,36 @@ void mojoKernel::validateFilters(){ }; }; -void mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){ - if( m_pDBC == NULL) return; - if( Evt == NULL ) return; +bool mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){ + if( Evt == NULL ) return false; if( m_bWorkWithRemoteServer && ( m_pRPC!=NULL) ) m_pRPC->addEvent( Evt ); - if( !m_bKeepLocalReport ) return; + if( m_pDBC == NULL) return false; + if( !m_bKeepLocalReport ) return true; switch (Evt->m_eClass) { + case EVT_CLASS_SYSTEM: + switch (Evt->m_eType) { + case EVT_LRF_START_SESSION: + case EVT_LRF_END_SESSION_TO: + case EVT_LRF_END_SESSION_MA:{ + DBC_EVT_RECORD tRecord; + memset( &tRecord, 0, sizeof(DBC_EVT_RECORD)); + uint64_t TS_64 = getMilliseconds();// - 20; // 20 msec before + tRecord.ts_s = TS_64/ 1000; + tRecord.ts_ms = TS_64 % 1000; + tRecord.node_id = m_nServerNodeID; + tRecord.type = Evt->m_eType; + CSTR tUUID = getUniqID_UUID( tRecord.ts_s ); + if( tUUID ) { + strncpy(tRecord.uuid, tUUID, 64 ); + free( tUUID ); + } else { + memset( tRecord.uuid, 0, 65 ); + }; + m_pDBC->addEvent( &tRecord ); + break; + }; + }; + break; /* case EVT_CLASS_EXTERNAL_CMD: switch( Evt->m_eType ){ @@ -837,7 +875,7 @@ void mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){ switch( Evt->m_eType ) { case EVT_TARGET_1D:{ - startSession(); + //startSession(); TARGET_DATA *tDATA =(TARGET_DATA *) Evt->m_pEvtData; if( tDATA != NULL ) { @@ -870,7 +908,7 @@ void mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){ case EVT_TARGET_2D_BLACK: case EVT_TARGET_2D_WHITE:{ - startSession(); + //startSession(); TARGET_DATA *tDATA = (TARGET_DATA *)Evt->m_pEvtData; if( tDATA != NULL ) { @@ -900,7 +938,7 @@ void mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){ case EVT_TARGET_3D_BLACK: case EVT_TARGET_3D_WHITE:{ - startSession(); + //startSession(); TARGET_DATA *tDATA = (TARGET_DATA *) Evt->m_pEvtData; if( tDATA != NULL ) { @@ -1008,6 +1046,7 @@ void mojoKernel::dispatchEvent( EVENT_CONTAINER *Evt ){ break; }; }; + return true; }; void mojoKernel::handleVideo( VIDEO_SEGMENT_INFO *ptr ){ diff --git a/lib/App/mojo/mojoKernel.h b/lib/App/mojo/mojoKernel.h index 397657ba..5de01317 100644 --- a/lib/App/mojo/mojoKernel.h +++ b/lib/App/mojo/mojoKernel.h @@ -88,7 +88,7 @@ class mojoKernel: public kernelPrototype{ void validateSession(); basicMutex m_mSessionProtector; - void startSession(); + void stopSession( bool forced = true ); static mojoKernel * _instance; @@ -108,7 +108,8 @@ class mojoKernel: public kernelPrototype{ // Destructor virtual ~mojoKernel(); virtual bool create(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); + virtual void startSession(); inline bool getDebugMode(){ return m_bDebugMode; }; inline uint8_t getMediaMode(){ return m_bMediaMode; }; diff --git a/lib/App/mojo/mojoRemoteClient.cpp b/lib/App/mojo/mojoRemoteClient.cpp index d7d914ee..7cec5b72 100644 --- a/lib/App/mojo/mojoRemoteClient.cpp +++ b/lib/App/mojo/mojoRemoteClient.cpp @@ -228,10 +228,9 @@ void mojoRemoteClient::m_fThreadProc( void ){ case ARGUS_RPC_STAGE_SEND_HELLO:{ ARGUS_DATA_MOJO_INFO tINFO; tINFO.MOJO_WORK_MODE = 2; - tINFO.MOJO_ROLE = 2; - tINFO.SENSORS_COUNT = 2; - tINFO.UPID = 2; - tINFO.DWID = 3; + tINFO.UPPER_ID = 2; + tINFO.BOTTOM_ID = 3; + tINFO.CAM_ID = 4; tINFO.CPU_COUNT = m_pMaster->m_sSysInfo.CPU_CORES; tINFO.TOT_DISK = m_pMaster->m_sSysInfo.T_DISK; tINFO.TOT_MEMO = m_pMaster->m_sSysInfo.T_MEM; diff --git a/lib/App/mojo/rgooseModule.h b/lib/App/mojo/rgooseModule.h index fb3d6d34..f2cec9e8 100644 --- a/lib/App/mojo/rgooseModule.h +++ b/lib/App/mojo/rgooseModule.h @@ -49,7 +49,7 @@ class argusKernelModule: public basicEventHandler, basicObject{ virtual bool startService(){ return false; }; virtual bool stopService( bool force = false ){ return true; }; virtual bool validate(){ return false; }; - virtual void dispatchEvent( EVENT_CONTAINER *Evt ){}; + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){}; }; diff --git a/lib/components/base/basicCamera.h b/lib/components/base/basicCamera.h index a84adf10..5d64a54c 100644 --- a/lib/components/base/basicCamera.h +++ b/lib/components/base/basicCamera.h @@ -112,7 +112,7 @@ public: explicit basicCamera(config_setting_t *Settings = NULL); // Destructor virtual ~basicCamera(); - virtual void dispatchEvent(EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent(EVENT_CONTAINER *Evt ); osdLabel *getLabel(uint8_t id){ if (id < m_vOSD.size()) return &(m_vOSD.at(id)); return NULL; }; uint8_t getLabelCount(void){ return ( uint8_t ) m_vOSD.size(); }; processStatus getProcessStatus( void ){ return m_iStatus; }; diff --git a/lib/components/base/basicEventHandler.h b/lib/components/base/basicEventHandler.h index 91a19df5..051ca210 100644 --- a/lib/components/base/basicEventHandler.h +++ b/lib/components/base/basicEventHandler.h @@ -15,7 +15,7 @@ class basicEventHandler { basicEventHandler(); // Destructor virtual ~basicEventHandler(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ){}; + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){ return true; }; }; typedef basicRingElement< basicEventHandler > EventHandlerIterator; diff --git a/lib/components/base/basicEventHeap.cpp b/lib/components/base/basicEventHeap.cpp index 3bf52201..f0eb122f 100644 --- a/lib/components/base/basicEventHeap.cpp +++ b/lib/components/base/basicEventHeap.cpp @@ -53,11 +53,11 @@ void basicEventHeap::m_fThreadProc( void ){ m_pHandlerMutex->lock(); for( V_EVT_HANDLER::iterator idx = m_vHandlers.begin(); idx< m_vHandlers.end();idx++) { mpHandler = (*idx); - if( mpHandler != NULL ) mpHandler->dispatchEvent( mpEvent ); + if( mpHandler != NULL ) if( !mpHandler->dispatchEvent( mpEvent ) ) break; // Stop Propogation if false }; m_pHandlerMutex->unlock(); utilizeBasicEvent( mpEvent ); - } else SLEEP(1); + } else SLEEP(1); }; }; }; diff --git a/lib/components/object/objectEventReport.h b/lib/components/object/objectEventReport.h index 6096c59d..bc1970d6 100644 --- a/lib/components/object/objectEventReport.h +++ b/lib/components/object/objectEventReport.h @@ -65,7 +65,7 @@ class objectEventReport : public basicEventHandler { public: static objectEventReport *getInstance(void); virtual ~objectEventReport(void); - virtual void dispatchEvent( basicEvent *Evt); + virtual bool dispatchEvent( basicEvent *Evt); bool loadReportList( struct tm *LTM); bool loadReport( struct tm *LTM); vectorPeportsList * getLoaddedReports(void); diff --git a/lib/data/media/lapsedVideoRecorder.h b/lib/data/media/lapsedVideoRecorder.h index 12d83056..0eb3c4f1 100644 --- a/lib/data/media/lapsedVideoRecorder.h +++ b/lib/data/media/lapsedVideoRecorder.h @@ -31,7 +31,7 @@ class lapsedVideoRecorder : public basicMediaDestination, public basicEventHandl lapsedVideoRecorder(); ~lapsedVideoRecorder(); virtual void pushFrame( cv::Mat *Frame ); - virtual void dispatchEvent(EVENT_CONTAINER*Evt ); + virtual bool dispatchEvent(EVENT_CONTAINER*Evt ); void setTargetOutput( CSTR FileName ); void setTimeLapse( uint32_t milliseconds ); void setFrameLapse( uint32_t frames ); diff --git a/lib/data/net/netClientHandler.h b/lib/data/net/netClientHandler.h index a02d12bb..9637fb6c 100644 --- a/lib/data/net/netClientHandler.h +++ b/lib/data/net/netClientHandler.h @@ -17,7 +17,7 @@ class networkClientHandler: public basicEventHandler{ explicit networkClientHandler( int SocketFD, networkServiceEngine *ptr = NULL ); virtual ~networkClientHandler(); virtual bool attachEngine( networkServiceEngine *ptr ); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ){}; + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){ return true; }; virtual bool getStatus( void ){ return false; }; }; diff --git a/lib/data/net/netServer.cpp b/lib/data/net/netServer.cpp index de3c1282..7271eecd 100644 --- a/lib/data/net/netServer.cpp +++ b/lib/data/net/netServer.cpp @@ -491,11 +491,12 @@ void networkServer::m_fThreadProc( void ){ #endif }; -void networkServer::dispatchEvent( EVENT_CONTAINER *Evt ){ - if( Evt == NULL ) return; +bool networkServer::dispatchEvent( EVENT_CONTAINER *Evt ){ + if( Evt == NULL ) return false; if( Evt->m_eClass == EVT_CLASS_SYSTEM ) { // Handle System Events }; + return true; }; diff --git a/lib/data/net/netServer.h b/lib/data/net/netServer.h index a76686b3..01706fb7 100644 --- a/lib/data/net/netServer.h +++ b/lib/data/net/netServer.h @@ -107,7 +107,7 @@ class networkServer: public basicThread, public basicEventHandler{ bool BootUp( CSTR UNIX_SOCKET_NAME ); #endif bool attachEngine( networkServiceEngine *ptr ); - void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); CSTR getAddress( void ){ /* if( m_pHostName ) return strdup( m_pHostName ); */ return NULL; }; CSTR getHostname( void ){ if( m_pHostName ) return strdup( m_pHostName ); }; uint16_t getPort( void ){ return m_nPortNumber; }; diff --git a/lib/data/ponvif/ponvif.cpp b/lib/data/ponvif/ponvif.cpp index d6e470b4..3131c543 100644 --- a/lib/data/ponvif/ponvif.cpp +++ b/lib/data/ponvif/ponvif.cpp @@ -1835,7 +1835,7 @@ bool pOnvif::_send_request( CSTR url, CSTR post_string, bool mustReturnData ){ } else { RetVal = m_pHttpAccessManager->accomplish( tRC ); }; - }; + } else LOG_ERROR("Cannot Create curlRequest!"); m_mResponseProtector.unlock(); }; return RetVal; diff --git a/lib/data/protocol/protocolARGUS_DATA.h b/lib/data/protocol/protocolARGUS_DATA.h index 36e1ce77..c3145ccb 100644 --- a/lib/data/protocol/protocolARGUS_DATA.h +++ b/lib/data/protocol/protocolARGUS_DATA.h @@ -46,6 +46,10 @@ typedef enum E_ARGUS_RPC_TAGS{ ARGUS_DATA_MSG_UPGRADE_INFO = 0x14, ARGUS_DATA_MSG_UPGRADE_DATA = 0x15, ARGUS_DATA_MSG_TIME_SYNC = 0x16, + ARGUS_DATA_MSG_PUSH_RBUS_CMD = 0x17, + ARGUS_DATA_MSG_UPDATE_WM = 0x18, + ARGUS_DATA_MSG_GET_USER_DATA = 0x19, + ARGUS_DATA_MSG_SET_USER_DATA = 0x1A, ARGUS_DATA_MSG_REGISTER = 0x20, ARGUS_DATA_MSG_DISABLED = 0x21, ARGUS_DATA_MSG_ACCESS_DENIED = 0x23 @@ -68,19 +72,19 @@ typedef struct S_ARGUS_DATA_HEADER{ }ARGUS_DATA_HEADER; typedef struct S_ARGUS_DATA_MOJO_INFO{ - uint8_t MOJO_ROLE; uint8_t MOJO_WORK_MODE; - uint32_t TLS_VERSION; //ts of build - uint32_t LLS_VERSION; //ts of build - uint8_t SENSORS_COUNT; + char TLS_VERSION[64]; //Top Level Software (Mojo) + char LLS_VERSION[64]; //Low Level Software (Host Control) uint8_t CPU_COUNT; uint64_t TOT_MEMO; uint64_t TOT_DISK; - uint8_t UPID; - uint8_t DWID; + uint32_t UPPER_ID; + uint32_t BOTTOM_ID; + uint32_t CAM_ID; }ARGUS_DATA_MOJO_INFO; typedef struct S_ARGUS_DATA_MOJO_STATUS{ + uint8_t MOJO_WORK_MODE; uint8_t CPU_LOAD; uint8_t CPU_TEMP; uint8_t DISK_UTI; @@ -110,6 +114,11 @@ typedef struct S_ARGUS_DATA_TIME_SYNC_ACK{ uint64_t ATS; }ARGUS_DATA_TIME_SYNC_ACK; +typedef struct S_ARGUS_PUSH_RBUS_CMD{ + uint32_t DST; + uint8_t CMD; + char PARAM[256]; +}ARGUS_PUSH_RBUS_CMD; typedef struct S_ARGUS_DATA_VIDEO_SEGMENT{ char DATA_DIR[10]; diff --git a/lib/data/protocol/protocolPTZ_ONVIF.cpp b/lib/data/protocol/protocolPTZ_ONVIF.cpp index 06ccf651..58a794c2 100644 --- a/lib/data/protocol/protocolPTZ_ONVIF.cpp +++ b/lib/data/protocol/protocolPTZ_ONVIF.cpp @@ -286,7 +286,7 @@ bool protocolPTZ_ONVIF::waitMoveIsDone( void ){ LOG("Finished Move!"); #endif return true; - } else LOG_ERROR("Error Fetching PTZ Status!"); + }; //else LOG_ERROR("Error Fetching PTZ Status!"); return false; }; diff --git a/lib/defender-dc-trig/rgooseIPCamera.h b/lib/defender-dc-trig/rgooseIPCamera.h index e7e0df03..a1759e85 100644 --- a/lib/defender-dc-trig/rgooseIPCamera.h +++ b/lib/defender-dc-trig/rgooseIPCamera.h @@ -47,7 +47,7 @@ class ARGUS_Camera: public argusNetNode, public basicEventHandler, public basicT ~ARGUS_Camera(); bool create( CSTR ip, CSTR username, CSTR password ); bool isOnline( void ){ return m_bOnline; }; - virtual void dispatchEvent( basicEvent *Evt ); + virtual bool dispatchEvent( basicEvent *Evt ); }; diff --git a/lib/defender-dc-trig/rgooseServerModule.h b/lib/defender-dc-trig/rgooseServerModule.h index 233113e5..f55de2ff 100644 --- a/lib/defender-dc-trig/rgooseServerModule.h +++ b/lib/defender-dc-trig/rgooseServerModule.h @@ -10,7 +10,7 @@ class argusServerModule: public basicEventHandler{ public: explicit argusServerModule( ARGUS_DBC * DBC ); virtual ~argusServerModule(); - virtual void dispatchEvent( basicEvent *Evt ){}; + virtual bool dispatchEvent( basicEvent *Evt ){ return true; }; }; #endif diff --git a/lib/gui/controls/EventViewWidget.h b/lib/gui/controls/EventViewWidget.h index b2534b48..fa00bf6f 100644 --- a/lib/gui/controls/EventViewWidget.h +++ b/lib/gui/controls/EventViewWidget.h @@ -23,7 +23,7 @@ class EventViewerList: public QListWidget, public basicEventHandler{ public: explicit EventViewerList( QWidget *parent = NULL ); ~EventViewerList(); - void dispatchEvent(basicEvent *Evt); + virtual bool dispatchEvent(basicEvent *Evt); }; #endif diff --git a/lib/gui/controls/LrfSensorWidget.h b/lib/gui/controls/LrfSensorWidget.h index 2b837ad7..4b33b02a 100644 --- a/lib/gui/controls/LrfSensorWidget.h +++ b/lib/gui/controls/LrfSensorWidget.h @@ -46,7 +46,7 @@ class LrfSensorWidget : public QFrame, public basicEventHandler{ virtual ~LrfSensorWidget(); bool attachDevice( objectLGS *dev ); bool attachRangeMap(); - virtual void dispatchEvent( basicEvent *Evt ); + virtual bool dispatchEvent( basicEvent *Evt ); bool loadFromFile( char *fName ); bool saveIntoFile( char *fName ); public slots: diff --git a/lib/gui/controls/TimeShowWidget.h b/lib/gui/controls/TimeShowWidget.h index 58046976..a5d2a4ab 100644 --- a/lib/gui/controls/TimeShowWidget.h +++ b/lib/gui/controls/TimeShowWidget.h @@ -49,7 +49,7 @@ class TimeShowWidget : public QWidget, public basicEventHandler { void setLogoSize(int Z); void setStatus(TSW_STATUS S){ m_bWorkingStatus = S; }; public slots: - void dispatchEvent(basicEvent *Evt); + virtual bool dispatchEvent(basicEvent *Evt); void updateClock(); void updateLogo(); }; diff --git a/lib/gui/controls/targetDisplay.h b/lib/gui/controls/targetDisplay.h index ec098559..fc6249a1 100644 --- a/lib/gui/controls/targetDisplay.h +++ b/lib/gui/controls/targetDisplay.h @@ -67,7 +67,7 @@ class targetDisplay: public basicEventHandler{ void updateRanges(uint32_t *Ranges, uint32_t count); bool loadFromFile(char *fName); void clearTargets(void); - void dispatchEvent( basicEvent *Evt ); + virtual bool dispatchEvent( basicEvent *Evt ); }; diff --git a/lib/rgoose/rgooseKernel.h b/lib/rgoose/rgooseKernel.h index 56ff835a..ad33dffa 100644 --- a/lib/rgoose/rgooseKernel.h +++ b/lib/rgoose/rgooseKernel.h @@ -166,7 +166,7 @@ class argusKernel: public basicThread, public basicEventHandler { CSTR getServerIdentity( void ){ return (CSTR)m_sIdentity; }; // NOTE: DON't FREE THIS MEMORY!!! ARGUS_TARGET_FILTER * getFilter( uint32_t id ); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); private: static argusKernel * _instance; // Constructor diff --git a/lib/rgoose/rgooseModule.h b/lib/rgoose/rgooseModule.h index 656871c8..45e9c8ca 100644 --- a/lib/rgoose/rgooseModule.h +++ b/lib/rgoose/rgooseModule.h @@ -49,7 +49,7 @@ class argusKernelModule: public basicEventHandler, basicObject{ virtual bool startService(){ return false; }; virtual bool stopService( bool force = false ){ return true; }; virtual bool validate(){ return false; }; - virtual void dispatchEvent( EVENT_CONTAINER *Evt ){}; + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ){return true; }; }; diff --git a/lib/rgoose/rgooseNodePTZCamControl.h b/lib/rgoose/rgooseNodePTZCamControl.h index ce937e89..18fd59b2 100644 --- a/lib/rgoose/rgooseNodePTZCamControl.h +++ b/lib/rgoose/rgooseNodePTZCamControl.h @@ -37,7 +37,7 @@ class ARGUS_PTZCAM: public ARGUS_Camera, public basicEventHandler { explicit ARGUS_PTZCAM( uint32_t id ); explicit ARGUS_PTZCAM( DBC_NODE_DATA *Data = NULL ); ~ARGUS_PTZCAM(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); virtual bool startService(); virtual bool stopService(); virtual bool validate(); diff --git a/lib/rgoose/rgooseNodeStaticCamControl.h b/lib/rgoose/rgooseNodeStaticCamControl.h index 213cf2ff..2a179d3d 100644 --- a/lib/rgoose/rgooseNodeStaticCamControl.h +++ b/lib/rgoose/rgooseNodeStaticCamControl.h @@ -38,7 +38,7 @@ class ARGUS_CAM: public ARGUS_Camera, public basicEventHandler { explicit ARGUS_CAM( uint32_t id ); explicit ARGUS_CAM( DBC_NODE_DATA *Data ); ~ARGUS_CAM(); - virtual void dispatchEvent( EVENT_CONTAINER *Evt ); + virtual bool dispatchEvent( EVENT_CONTAINER *Evt ); virtual bool startService(); virtual bool stopService(); virtual bool validate();