diff --git a/Projects/argus/argus.vpj b/Projects/argus/argus.vpj
index 7a998c3e..99033f3c 100644
--- a/Projects/argus/argus.vpj
+++ b/Projects/argus/argus.vpj
@@ -307,6 +307,7 @@
+
@@ -335,6 +336,7 @@
+
@@ -385,6 +387,7 @@
+
@@ -413,6 +416,7 @@
+
diff --git a/Projects/argus/makefile b/Projects/argus/makefile
index d5526fb1..909eb856 100644
--- a/Projects/argus/makefile
+++ b/Projects/argus/makefile
@@ -48,22 +48,24 @@ COMMON_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \
$(OUTDIR)/objectConsoleLoggingService.o \
$(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectSystemAnchor.o \
$(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/ponvif.o \
- $(OUTDIR)/protocol.o $(OUTDIR)/protocolDefender.o \
- $(OUTDIR)/protocolEuropeanGeneral.o $(OUTDIR)/protocolHTTP.o \
- $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \
- $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \
- $(OUTDIR)/protocolMAVLINK.o $(OUTDIR)/protocolPTZ.o \
- $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \
- $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/protocolSafeShore.o \
- $(OUTDIR)/protocolZLMEDIA.o $(OUTDIR)/rgooseCamera.o \
- $(OUTDIR)/rgooseDBConnector.o $(OUTDIR)/rgooseFilterAPF.o \
- $(OUTDIR)/rgooseHardwareManager.o $(OUTDIR)/rgooseHardwareResource.o \
+ $(OUTDIR)/protocol.o $(OUTDIR)/protocolAT.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolEuropeanGeneral.o \
+ $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolKAFKA.o \
+ $(OUTDIR)/protocolLGS2D.o $(OUTDIR)/protocolLGS3D.o \
+ $(OUTDIR)/protocolLGS3D_client.o $(OUTDIR)/protocolMAVLINK.o \
+ $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \
+ $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolZLMEDIA.o \
+ $(OUTDIR)/rgooseCamera.o $(OUTDIR)/rgooseDBConnector.o \
+ $(OUTDIR)/rgooseFilterAPF.o $(OUTDIR)/rgooseHardwareManager.o \
+ $(OUTDIR)/rgooseHardwareResource.o \
$(OUTDIR)/rgooseHardwareResourceDryContactProvider.o \
$(OUTDIR)/rgooseHardwareResourceNetworkProvider.o \
$(OUTDIR)/rgooseHardwareResourceSerialProvider.o \
$(OUTDIR)/rgooseKernel.o $(OUTDIR)/rgooseModule.o \
$(OUTDIR)/rgooseModuleEmbedVideo.o $(OUTDIR)/rgooseModuleFactory.o \
$(OUTDIR)/rgooseModuleFlyHunter.o $(OUTDIR)/rgooseModuleKafka.o \
+ $(OUTDIR)/rgooseModuleModemManager.o \
$(OUTDIR)/rgooseModuleOnvifObserver.o $(OUTDIR)/rgooseModuleSSDP.o \
$(OUTDIR)/rgooseModuleUSBRelay.o $(OUTDIR)/rgooseModuleZLMedia.o \
$(OUTDIR)/rgooseNode.o $(OUTDIR)/rgooseNode2D.o \
@@ -98,22 +100,24 @@ ALL_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \
$(OUTDIR)/objectConsoleLoggingService.o \
$(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectSystemAnchor.o \
$(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/ponvif.o \
- $(OUTDIR)/protocol.o $(OUTDIR)/protocolDefender.o \
- $(OUTDIR)/protocolEuropeanGeneral.o $(OUTDIR)/protocolHTTP.o \
- $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \
- $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \
- $(OUTDIR)/protocolMAVLINK.o $(OUTDIR)/protocolPTZ.o \
- $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \
- $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/protocolSafeShore.o \
- $(OUTDIR)/protocolZLMEDIA.o $(OUTDIR)/rgooseCamera.o \
- $(OUTDIR)/rgooseDBConnector.o $(OUTDIR)/rgooseFilterAPF.o \
- $(OUTDIR)/rgooseHardwareManager.o $(OUTDIR)/rgooseHardwareResource.o \
+ $(OUTDIR)/protocol.o $(OUTDIR)/protocolAT.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolEuropeanGeneral.o \
+ $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolKAFKA.o \
+ $(OUTDIR)/protocolLGS2D.o $(OUTDIR)/protocolLGS3D.o \
+ $(OUTDIR)/protocolLGS3D_client.o $(OUTDIR)/protocolMAVLINK.o \
+ $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \
+ $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolZLMEDIA.o \
+ $(OUTDIR)/rgooseCamera.o $(OUTDIR)/rgooseDBConnector.o \
+ $(OUTDIR)/rgooseFilterAPF.o $(OUTDIR)/rgooseHardwareManager.o \
+ $(OUTDIR)/rgooseHardwareResource.o \
$(OUTDIR)/rgooseHardwareResourceDryContactProvider.o \
$(OUTDIR)/rgooseHardwareResourceNetworkProvider.o \
$(OUTDIR)/rgooseHardwareResourceSerialProvider.o \
$(OUTDIR)/rgooseKernel.o $(OUTDIR)/rgooseModule.o \
$(OUTDIR)/rgooseModuleEmbedVideo.o $(OUTDIR)/rgooseModuleFactory.o \
$(OUTDIR)/rgooseModuleFlyHunter.o $(OUTDIR)/rgooseModuleKafka.o \
+ $(OUTDIR)/rgooseModuleModemManager.o \
$(OUTDIR)/rgooseModuleOnvifObserver.o $(OUTDIR)/rgooseModuleSSDP.o \
$(OUTDIR)/rgooseModuleUSBRelay.o $(OUTDIR)/rgooseModuleZLMedia.o \
$(OUTDIR)/rgooseNode.o $(OUTDIR)/rgooseNode2D.o \
@@ -246,22 +250,24 @@ COMMON_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \
$(OUTDIR)/objectConsoleLoggingService.o \
$(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectSystemAnchor.o \
$(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/ponvif.o \
- $(OUTDIR)/protocol.o $(OUTDIR)/protocolDefender.o \
- $(OUTDIR)/protocolEuropeanGeneral.o $(OUTDIR)/protocolHTTP.o \
- $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \
- $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \
- $(OUTDIR)/protocolMAVLINK.o $(OUTDIR)/protocolPTZ.o \
- $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \
- $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/protocolSafeShore.o \
- $(OUTDIR)/protocolZLMEDIA.o $(OUTDIR)/rgooseCamera.o \
- $(OUTDIR)/rgooseDBConnector.o $(OUTDIR)/rgooseFilterAPF.o \
- $(OUTDIR)/rgooseHardwareManager.o $(OUTDIR)/rgooseHardwareResource.o \
+ $(OUTDIR)/protocol.o $(OUTDIR)/protocolAT.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolEuropeanGeneral.o \
+ $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolKAFKA.o \
+ $(OUTDIR)/protocolLGS2D.o $(OUTDIR)/protocolLGS3D.o \
+ $(OUTDIR)/protocolLGS3D_client.o $(OUTDIR)/protocolMAVLINK.o \
+ $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \
+ $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolZLMEDIA.o \
+ $(OUTDIR)/rgooseCamera.o $(OUTDIR)/rgooseDBConnector.o \
+ $(OUTDIR)/rgooseFilterAPF.o $(OUTDIR)/rgooseHardwareManager.o \
+ $(OUTDIR)/rgooseHardwareResource.o \
$(OUTDIR)/rgooseHardwareResourceDryContactProvider.o \
$(OUTDIR)/rgooseHardwareResourceNetworkProvider.o \
$(OUTDIR)/rgooseHardwareResourceSerialProvider.o \
$(OUTDIR)/rgooseKernel.o $(OUTDIR)/rgooseModule.o \
$(OUTDIR)/rgooseModuleEmbedVideo.o $(OUTDIR)/rgooseModuleFactory.o \
$(OUTDIR)/rgooseModuleFlyHunter.o $(OUTDIR)/rgooseModuleKafka.o \
+ $(OUTDIR)/rgooseModuleModemManager.o \
$(OUTDIR)/rgooseModuleOnvifObserver.o $(OUTDIR)/rgooseModuleSSDP.o \
$(OUTDIR)/rgooseModuleUSBRelay.o $(OUTDIR)/rgooseModuleZLMedia.o \
$(OUTDIR)/rgooseNode.o $(OUTDIR)/rgooseNode2D.o \
@@ -296,22 +302,24 @@ ALL_OBJ=$(OUTDIR)/ArgusBackend.o $(OUTDIR)/base64.o \
$(OUTDIR)/objectConsoleLoggingService.o \
$(OUTDIR)/objectFileLoggingService.o $(OUTDIR)/objectSystemAnchor.o \
$(OUTDIR)/onvifMediaObserver.o $(OUTDIR)/ponvif.o \
- $(OUTDIR)/protocol.o $(OUTDIR)/protocolDefender.o \
- $(OUTDIR)/protocolEuropeanGeneral.o $(OUTDIR)/protocolHTTP.o \
- $(OUTDIR)/protocolKAFKA.o $(OUTDIR)/protocolLGS2D.o \
- $(OUTDIR)/protocolLGS3D.o $(OUTDIR)/protocolLGS3D_client.o \
- $(OUTDIR)/protocolMAVLINK.o $(OUTDIR)/protocolPTZ.o \
- $(OUTDIR)/protocolPTZ_ONVIF.o $(OUTDIR)/protocolPTZ_PELCO.o \
- $(OUTDIR)/protocolPTZ_VISCA.o $(OUTDIR)/protocolSafeShore.o \
- $(OUTDIR)/protocolZLMEDIA.o $(OUTDIR)/rgooseCamera.o \
- $(OUTDIR)/rgooseDBConnector.o $(OUTDIR)/rgooseFilterAPF.o \
- $(OUTDIR)/rgooseHardwareManager.o $(OUTDIR)/rgooseHardwareResource.o \
+ $(OUTDIR)/protocol.o $(OUTDIR)/protocolAT.o \
+ $(OUTDIR)/protocolDefender.o $(OUTDIR)/protocolEuropeanGeneral.o \
+ $(OUTDIR)/protocolHTTP.o $(OUTDIR)/protocolKAFKA.o \
+ $(OUTDIR)/protocolLGS2D.o $(OUTDIR)/protocolLGS3D.o \
+ $(OUTDIR)/protocolLGS3D_client.o $(OUTDIR)/protocolMAVLINK.o \
+ $(OUTDIR)/protocolPTZ.o $(OUTDIR)/protocolPTZ_ONVIF.o \
+ $(OUTDIR)/protocolPTZ_PELCO.o $(OUTDIR)/protocolPTZ_VISCA.o \
+ $(OUTDIR)/protocolSafeShore.o $(OUTDIR)/protocolZLMEDIA.o \
+ $(OUTDIR)/rgooseCamera.o $(OUTDIR)/rgooseDBConnector.o \
+ $(OUTDIR)/rgooseFilterAPF.o $(OUTDIR)/rgooseHardwareManager.o \
+ $(OUTDIR)/rgooseHardwareResource.o \
$(OUTDIR)/rgooseHardwareResourceDryContactProvider.o \
$(OUTDIR)/rgooseHardwareResourceNetworkProvider.o \
$(OUTDIR)/rgooseHardwareResourceSerialProvider.o \
$(OUTDIR)/rgooseKernel.o $(OUTDIR)/rgooseModule.o \
$(OUTDIR)/rgooseModuleEmbedVideo.o $(OUTDIR)/rgooseModuleFactory.o \
$(OUTDIR)/rgooseModuleFlyHunter.o $(OUTDIR)/rgooseModuleKafka.o \
+ $(OUTDIR)/rgooseModuleModemManager.o \
$(OUTDIR)/rgooseModuleOnvifObserver.o $(OUTDIR)/rgooseModuleSSDP.o \
$(OUTDIR)/rgooseModuleUSBRelay.o $(OUTDIR)/rgooseModuleZLMedia.o \
$(OUTDIR)/rgooseNode.o $(OUTDIR)/rgooseNode2D.o \
@@ -456,6 +464,7 @@ $(OUTDIR)/objectSystemAnchor.o: ../../lib/components/object/objectSystemAnchor.c
$(OUTDIR)/onvifMediaObserver.o: ../../lib/data/protocol/onvifMediaObserver.cpp ../../lib/data/protocol/onvifMediaObserver.h
$(OUTDIR)/ponvif.o: ../../lib/data/ponvif/ponvif.cpp ../../lib/data/ponvif/ponvif.h ../../lib/data/protocol/xmlParser.h ../../lib/alg/generic/base64.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h
$(OUTDIR)/protocol.o: ../../lib/data/protocol/protocol.cpp ../../lib/data/protocol/protocol.h
+$(OUTDIR)/protocolAT.o: ../../lib/data/protocol/protocolAT.cpp ../../lib/data/protocol/protocolAT.h ../../lib/data/protocol/protocol.h
$(OUTDIR)/protocolDefender.o: ../../lib/data/protocol/protocolDefender.cpp ../../lib/data/protocol/protocolDefender.h ../../lib/alg/generic/md5.h ../../lib/data/json/json_tool.h
$(OUTDIR)/protocolEuropeanGeneral.o: ../../lib/data/protocol/protocolEuropeanGeneral.cpp ../../lib/data/protocol/protocolEuropeanGeneral.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/alg/generic/md5.h
$(OUTDIR)/protocolHTTP.o: ../../lib/data/protocol/protocolHTTP.cpp ../../lib/data/protocol/protocolHTTP.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h
@@ -466,11 +475,11 @@ $(OUTDIR)/protocolLGS3D_client.o: ../../lib/data/protocol/protocolLGS3D_client.c
$(OUTDIR)/protocolMAVLINK.o: ../../lib/data/protocol/protocolMAVLINK.cpp ../../lib/data/protocol/protocolMAVLINK.h ../../lib/data/protocol/protocol.h ../../lib/data/mavlink/ardupilotmega/mavlink.h ../../lib/hardware/uart/serialPort.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h
$(OUTDIR)/protocolPTZ.o: ../../lib/data/protocol/protocolPTZ.cpp ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h
$(OUTDIR)/protocolPTZ_ONVIF.o: ../../lib/data/protocol/protocolPTZ_ONVIF.cpp ../../lib/data/protocol/protocolPTZ_ONVIF.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/ponvif/ponvif.h ../../lib/data/protocol/xmlParser.h ../../lib/alg/generic/base64.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/onvif/include/onvifclient.hpp ../../lib/hardware/uart/serialPort.h
-$(OUTDIR)/protocolPTZ_PELCO.o: ../../lib/data/protocol/protocolPTZ_PELCO.cpp ../../lib/data/protocol/protocolPTZ_PELCO.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/hardware/uart/serialPort.h
-$(OUTDIR)/protocolPTZ_VISCA.o: ../../lib/data/protocol/protocolPTZ_VISCA.cpp ../../lib/data/protocol/protocolPTZ_VISCA.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/hardware/uart/serialPort.h
+$(OUTDIR)/protocolPTZ_PELCO.o: ../../lib/data/protocol/protocolPTZ_PELCO.cpp ../../lib/data/protocol/protocolPTZ_PELCO.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h
+$(OUTDIR)/protocolPTZ_VISCA.o: ../../lib/data/protocol/protocolPTZ_VISCA.cpp ../../lib/data/protocol/protocolPTZ_VISCA.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h
$(OUTDIR)/protocolSafeShore.o: ../../lib/data/protocol/protocolSafeShore.cpp ../../lib/data/protocol/protocolSafeShore.h ../../lib/alg/generic/md5.h
$(OUTDIR)/protocolZLMEDIA.o: ../../lib/data/protocol/protocolZLMEDIA.cpp ../../lib/data/protocol/protocolZLMEDIA.h ../../lib/data/protocol/protocolHTTP.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/data/json/json_tool.h
-$(OUTDIR)/rgooseCamera.o: ../../lib/rgoose/rgooseCamera.cpp ../../lib/rgoose/rgooseCamera.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicMutex.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/media/video/videoAVLIBSource.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.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.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/protocol/protocolPTZ_ONVIF.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/ponvif/ponvif.h ../../lib/data/protocol/xmlParser.h ../../lib/alg/generic/base64.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/onvif/include/onvifclient.hpp ../../lib/data/protocol/protocolPTZ_PELCO.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleEmbedVideo.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicMediaDestination.h
+$(OUTDIR)/rgooseCamera.o: ../../lib/rgoose/rgooseCamera.cpp ../../lib/rgoose/rgooseCamera.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicMutex.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/media/video/videoAVLIBSource.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.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.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/protocol/protocolPTZ_ONVIF.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/ponvif/ponvif.h ../../lib/data/protocol/xmlParser.h ../../lib/alg/generic/base64.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/onvif/include/onvifclient.hpp ../../lib/data/protocol/protocolPTZ_PELCO.h ../../lib/data/protocol/protocolPTZ.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseHardwareResourceSerialProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicDualThread.h ../../lib/rgoose/rgooseModuleEmbedVideo.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicMediaDestination.h
$(OUTDIR)/rgooseDBConnector.o: ../../lib/rgoose/rgooseDBConnector.cpp ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h
$(OUTDIR)/rgooseFilterAPF.o: ../../lib/rgoose/rgooseFilterAPF.cpp ../../lib/rgoose/rgooseFilterAPF.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicThread.h
$(OUTDIR)/rgooseHardwareManager.o: ../../lib/rgoose/rgooseHardwareManager.cpp ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseHardwareResourceSerialProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicDualThread.h ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/hardware/hid/hid_dc.h ../../lib/alg/generic/heapDebug.h
@@ -478,16 +487,17 @@ $(OUTDIR)/rgooseHardwareResource.o: ../../lib/rgoose/rgooseHardwareResource.cpp
$(OUTDIR)/rgooseHardwareResourceDryContactProvider.o: ../../lib/rgoose/rgooseHardwareResourceDryContactProvider.cpp ../../lib/rgoose/rgooseHardwareResourceDryContactProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h
$(OUTDIR)/rgooseHardwareResourceNetworkProvider.o: ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.cpp ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h
$(OUTDIR)/rgooseHardwareResourceSerialProvider.o: ../../lib/rgoose/rgooseHardwareResourceSerialProvider.cpp ../../lib/rgoose/rgooseHardwareResourceSerialProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicDualThread.h ../../lib/data/protocol/protocol.h
-$(OUTDIR)/rgooseKernel.o: ../../lib/rgoose/rgooseKernel.cpp ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseFilterAPF.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicThread.h
+$(OUTDIR)/rgooseKernel.o: ../../lib/rgoose/rgooseKernel.cpp ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseFilterAPF.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicThread.h ../../lib/data/json/json_tool.h
$(OUTDIR)/rgooseModule.o: ../../lib/rgoose/rgooseModule.cpp ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h
$(OUTDIR)/rgooseModuleEmbedVideo.o: ../../lib/rgoose/rgooseModuleEmbedVideo.cpp ../../lib/rgoose/rgooseModuleEmbedVideo.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicMediaDestination.h ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/alg/generic/base64.h
-$(OUTDIR)/rgooseModuleFactory.o: ../../lib/rgoose/rgooseModuleFactory.cpp ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseModuleZLMedia.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicMutex.h ../../lib/data/protocol/protocolZLMEDIA.h ../../lib/data/protocol/protocolHTTP.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleUSBRelay.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleKafka.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/data/protocol/protocolKAFKA.h ../../lib/data/protocol/protocolEuropeanGeneral.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/rgoose/rgooseModuleFlyHunter.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/data/protocol/protocolMAVLINK.h ../../lib/data/protocol/protocol.h ../../lib/data/mavlink/ardupilotmega/mavlink.h ../../lib/hardware/uart/serialPort.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/rgoose/rgooseModuleSSDP.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseModuleOnvifObserver.h ../../lib/data/protocol/xmlParser.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseModuleEmbedVideo.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicMediaDestination.h ../../lib/alg/generic/heapDebug.h
+$(OUTDIR)/rgooseModuleFactory.o: ../../lib/rgoose/rgooseModuleFactory.cpp ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseModuleZLMedia.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicMutex.h ../../lib/data/protocol/protocolZLMEDIA.h ../../lib/data/protocol/protocolHTTP.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleUSBRelay.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleKafka.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/data/protocol/protocolKAFKA.h ../../lib/data/protocol/protocolEuropeanGeneral.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/rgoose/rgooseModuleFlyHunter.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/data/protocol/protocolMAVLINK.h ../../lib/data/protocol/protocol.h ../../lib/data/mavlink/ardupilotmega/mavlink.h ../../lib/hardware/uart/serialPort.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/rgoose/rgooseModuleSSDP.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseModuleOnvifObserver.h ../../lib/data/protocol/xmlParser.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseModuleEmbedVideo.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicMediaDestination.h ../../lib/alg/generic/heapDebug.h
$(OUTDIR)/rgooseModuleFlyHunter.o: ../../lib/rgoose/rgooseModuleFlyHunter.cpp ../../lib/rgoose/rgooseModuleFlyHunter.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/data/protocol/protocolMAVLINK.h ../../lib/data/protocol/protocol.h ../../lib/data/mavlink/ardupilotmega/mavlink.h ../../lib/hardware/uart/serialPort.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h
$(OUTDIR)/rgooseModuleKafka.o: ../../lib/rgoose/rgooseModuleKafka.cpp ../../lib/rgoose/rgooseModuleKafka.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/data/protocol/protocolKAFKA.h ../../lib/data/protocol/protocolEuropeanGeneral.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/data/json/json_tool.h
-$(OUTDIR)/rgooseModuleOnvifObserver.o: ../../lib/rgoose/rgooseModuleOnvifObserver.cpp ../../lib/rgoose/rgooseModuleOnvifObserver.h ../../lib/data/protocol/xmlParser.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h
+$(OUTDIR)/rgooseModuleModemManager.o: ../../lib/rgoose/rgooseModuleModemManager.cpp
+$(OUTDIR)/rgooseModuleOnvifObserver.o: ../../lib/rgoose/rgooseModuleOnvifObserver.cpp ../../lib/rgoose/rgooseModuleOnvifObserver.h ../../lib/data/protocol/xmlParser.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h
$(OUTDIR)/rgooseModuleSSDP.o: ../../lib/rgoose/rgooseModuleSSDP.cpp ../../lib/rgoose/rgooseModuleSSDP.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEventHeap.h
$(OUTDIR)/rgooseModuleUSBRelay.o: ../../lib/rgoose/rgooseModuleUSBRelay.cpp ../../lib/rgoose/rgooseModuleUSBRelay.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h
-$(OUTDIR)/rgooseModuleZLMedia.o: ../../lib/rgoose/rgooseModuleZLMedia.cpp ../../lib/rgoose/rgooseModuleZLMedia.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicMutex.h ../../lib/data/protocol/protocolZLMEDIA.h ../../lib/data/protocol/protocolHTTP.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/alg/generic/md5.h
+$(OUTDIR)/rgooseModuleZLMedia.o: ../../lib/rgoose/rgooseModuleZLMedia.cpp ../../lib/rgoose/rgooseModuleZLMedia.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicMutex.h ../../lib/data/protocol/protocolZLMEDIA.h ../../lib/data/protocol/protocolHTTP.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/curl/curlRequestsManager.h ../../lib/data/protocol/protocol.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseHardwareResourceNetworkProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/alg/generic/md5.h
$(OUTDIR)/rgooseNode.o: ../../lib/rgoose/rgooseNode.cpp ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h
$(OUTDIR)/rgooseNode2D.o: ../../lib/rgoose/rgooseNode2D.cpp ../../lib/rgoose/rgooseNode2D.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/data/protocol/protocolLGS2D.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolLGS_data.h ../../lib/alg/lgs/detectorStructures.h ../../lib/alg/lgs/mask.h ../../lib/rgoose/rgooseHardwareResourceSerialProvider.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicDualThread.h ../../lib/rgoose/rgooseKernel.h ../../lib/alg/generic/md5.h ../../lib/components/base/basicThread.h ../../lib/components/base/basicEngine.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicEventHeap.h ../../lib/rgoose/rgooseDBConnector.h ../../lib/rgoose/rgooseTypes.h ../../lib/rgoose/rgooseIPCamera.h ../../lib/rgoose/rgooseNodeFactory.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h ../../lib/rgoose/rgooseModuleFactory.h ../../lib/rgoose/rgooseModule.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicEventHandler.h ../../lib/components/base/basicRing.h ../../lib/components/base/basicEvent.h ../../lib/components/base/basicMutex.h ../../lib/rgoose/rgooseHardwareManager.h ../../lib/rgoose/rgooseHardwareResource.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h
$(OUTDIR)/rgooseNode3D.o: ../../lib/rgoose/rgooseNode3D.cpp ../../lib/rgoose/rgooseNode3D.h ../../lib/hardware/sensors/lrf/lrf_3d.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicLogCollection.h ../../lib/components/base/basicEventHeap.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/object/objectSystemAnchor.h ../../lib/components/base/basicSettingsProvider.h ../../lib/components/base/basicFunctionality.h ../../lib/components/base/basicBuildTimeStamp.h ../../lib/components/base/basicTypes.h ../../lib/alg/lgs/mask.h ../../lib/data/net/clientPort.h ../../lib/data/transport/transportSocket.h ../../lib/components/base/basicDualThread.h ../../lib/components/base/basicTransport.h ../../lib/components/base/basicMutex.h ../../lib/components/base/basicLogCollection.h ../../lib/data/protocol/protocolLGS3D_client.h ../../lib/data/protocol/protocolLGS3D.h ../../lib/data/protocol/protocol.h ../../lib/data/protocol/protocolLGS_data.h ../../lib/alg/lgs/detectorStructures.h ../../lib/hardware/soc/general/3DLRF.h ../../lib/rgoose/rgooseNode.h ../../lib/components/base/basicPosition.h ../../lib/alg/generic/utm.h ../../lib/alg/generic/Transform.h ../../lib/components/base/basicObject.h ../../lib/components/base/basicTypes.h ../../lib/components/base/basicStatus.h ../../lib/rgoose/rgooseTargetFilter.h ../../lib/components/base/basicEvent.h
diff --git a/lib/components/base/basicFunctionality.cpp b/lib/components/base/basicFunctionality.cpp
index 64ceb8e2..b33ee369 100644
--- a/lib/components/base/basicFunctionality.cpp
+++ b/lib/components/base/basicFunctionality.cpp
@@ -35,6 +35,27 @@
};
#endif
+int checkCmdExists( CSTR cmd ){
+ FILE * fd = popen( cmd, "r" );
+ char tB[1024];
+ int rVal = -1;
+ if( fd!= NULL ){
+ while ( !feof(fd)) {
+ fgets((CSTR)tB, 1024, fd );
+ trim( tB );
+ if( strstr(tB, "command not found" ) != NULL){
+ rVal = 0;
+ break;
+ };
+ };
+ if( rVal < 1 ) rVal = 1;
+ fclose(fd);
+ };
+ return rVal;
+}
+
+
+
#ifdef __linux__
int fileCopy( const char* source, const char* destination ){
int input, output;
@@ -356,23 +377,29 @@ uint8_t checksumLGS( uint8_t *Buffer, size_t BufferSize ){
};
CArray *explode( char Delim, CSTR S_Str ){
- CArray *RetVal;
- CSTR b_ptr = S_Str;
- U16 s_ptr = 0;
- RetVal = NULL;
+ bool ws = false;
+ CArray * RetVal = NULL;
+ CSTR b_ptr = S_Str;
+ U16 s_ptr = 0;
if( S_Str ){
RetVal = new CArray;
- while( ( U8 ) S_Str[s_ptr] ){
- if( (( U8 ) Delim ) == (( U8 )S_Str[s_ptr]) ){
- S_Str[s_ptr] = ( char ) 0;
- RetVal->push_back( b_ptr );
- s_ptr++;
- b_ptr = &S_Str[s_ptr];
- } else {
- s_ptr++;
- };
- };
- RetVal->push_back( b_ptr );
+ if( RetVal ){
+ while ((U8)S_Str[s_ptr]) {
+ if( (( U8 ) Delim ) == (( U8 )S_Str[s_ptr]) ){
+ if (!ws) {
+ ws = true;
+ S_Str[s_ptr] = (char)0;
+ RetVal->push_back( b_ptr );
+ s_ptr++;
+ b_ptr = &S_Str[s_ptr];
+ } else s_ptr++;
+ } else {
+ ws = false;
+ s_ptr++;
+ };
+ };
+ RetVal->push_back( b_ptr );
+ };
};
return RetVal;
};
diff --git a/lib/components/base/basicFunctionality.h b/lib/components/base/basicFunctionality.h
index da164d90..b96bb2e7 100644
--- a/lib/components/base/basicFunctionality.h
+++ b/lib/components/base/basicFunctionality.h
@@ -54,6 +54,8 @@ CSTR getUniqID_MD5(void);
CSTR getUniqID_UUID( uint32_t SEED = 0);
CSTR strReplace( CSTR orig, CSTR rep, CSTR with );
+int checkCmdExists( CSTR cmd );
+
//#define EPOCH_DIFF 11644473600LL
#define UNIX_TimeStamp_2_WINDOWS_FileTime_SHIFT 116444736000000000
diff --git a/lib/data/curl/curlRequestsManager.cpp b/lib/data/curl/curlRequestsManager.cpp
index 7100fbb5..e06f6d2e 100644
--- a/lib/data/curl/curlRequestsManager.cpp
+++ b/lib/data/curl/curlRequestsManager.cpp
@@ -88,7 +88,7 @@ void curlRequestsManager::m_fThreadProc( void ){
while( ( mMsg = curl_multi_info_read( m_pCURLM, &nMsgsLeft ) ) && ( m_bThreadStatus < TH_ENDED ) ){
if( mMsg->msg == CURLMSG_DONE ){
CURLcode rC = mMsg->data.result;
-#ifdef DEBUG
+#ifdef DEBUG_EXTRA
char tB[256];
sprintf( tB, "Request Done with Code: %d", rC );
LOG( tB );
diff --git a/lib/data/media/video/videoAVLIBSource.cpp b/lib/data/media/video/videoAVLIBSource.cpp
index aa4e7d78..2d85db7f 100644
--- a/lib/data/media/video/videoAVLIBSource.cpp
+++ b/lib/data/media/video/videoAVLIBSource.cpp
@@ -12,13 +12,21 @@
#define LOG_ERROR( X ) m_pLog->Log( "LIBAV_SRC", this, _LOG_ERROR, X );
#endif
+static int interrupt_cb( void *ctx ){
+ basicLogCollection::getInstance()->Log( "LibAV_CB", NULL, "INTERUPT!" );
+ // do something
+ return 0;
+}
+
+static const AVIOInterruptCB int_cb = { interrupt_cb, NULL };
+//https://ffmpeg.org/doxygen/3.4/ffplay_8c_source.html#l02732
videoAVLIBSource::videoAVLIBSource( void *opaque ): basicMediaSource(), basicThread() {
m_pLog = basicLogCollection::getInstance();
m_bStreamingSource = true;
m_bSizeIsAutomatic = false;
m_nWidth = 640;
- m_nHeight = 524;
+ m_nHeight = 480;
m_bSrcType = AVLIB_SOURCE_NOTDEF;
if( opaque ) {
m_pOpaque = opaque;
@@ -40,6 +48,9 @@ videoAVLIBSource::videoAVLIBSource( void *opaque ): basicMediaSource(), basicThr
LOG_ERROR("VideoCodec Context Memory Allocation Error");
return;
};
+
+ //m_pVideoState->m_pFormatCtx->interrupt_callback = int_cb;
+
m_pVideoState->m_iVideoStreamID = -1;
#ifndef _NOAUDIO_
m_pVideoState->m_iAudioStreamID = -1;
@@ -52,7 +63,7 @@ videoAVLIBSource::videoAVLIBSource( char *Source, void *opaque ) : basicMediaSou
m_bStreamingSource = true;
m_bSizeIsAutomatic = false;
m_nWidth = 640;
- m_nHeight = 524;
+ m_nHeight = 480;
m_bSrcType = AVLIB_SOURCE_NOTDEF;
if( opaque ) {
m_pOpaque = opaque;
@@ -211,7 +222,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
sprintf(tChar, "%dx%d", width, height);
av_dict_set(&options, "video_size", tChar, 0);
} else {
- m_bSizeIsAutomatic = true;
+ //m_bSizeIsAutomatic = true;
};
//av_dict_set(&options, "pixel_format", "yuyv422", 0 );
av_dict_set(&options, "video_codec", "mjpeg", 0 );
@@ -297,7 +308,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
sprintf(tChar, "%dx%d", width, height);
av_dict_set(&m_pVideoState->m_pFormatOpts, "video_size", tChar, 0);
} else {
- m_bSizeIsAutomatic = true;
+ //m_bSizeIsAutomatic = true;
};
};
av_dict_set(&m_pVideoState->m_pFormatOpts, "buffer_size", "1024000", 0);
@@ -314,6 +325,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
//av_dict_set(&options, "timeout", "8000", 0);
int RetVal = 0;
strncpy( m_pVideoState->m_pFileName, URI, MAX_PATH_LEN );
+ LOG("Before Open1");
if( ( RetVal = avformat_open_input(&m_pVideoState->m_pFormatCtx, m_pVideoState->m_pFileName, NULL, &m_pVideoState->m_pFormatOpts) ) != 0 ){
//av_dict_free(&options);
char tBuffer[1024];
@@ -322,6 +334,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
LOG_ERROR(Buffer);
return false;
};
+ LOG("After Open1");
AVDictionaryEntry *e;
if( e = av_dict_get( m_pVideoState->m_pFormatOpts, "", NULL, AV_DICT_IGNORE_SUFFIX )){
sprintf(Buffer, "Option %s not recognized by the demuxer", e->key);
@@ -329,7 +342,10 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
};
//av_dict_free( &e );
};
- //DataStream Opened !
+
+#ifdef DEBUG
+ LOG("DataStream Opened");
+#endif
m_pVideoState->m_bStatus = MS_OPENED;
if( avformat_find_stream_info( m_pVideoState->m_pFormatCtx, NULL )<0 ){
@@ -376,7 +392,9 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
//m_pVideoState->m_pFormatCtx->streams[m_pVideoState->m_iVideoStreamID]->codecpar->codec_id
m_pVideoState->m_pVideoCodec = avcodec_find_decoder( m_pVideoState->m_pCodecCtx->codec_id );
#else
- //LOG("YABABA-2!");
+# ifdef DEBUG
+ LOG("YABABA-2!");
+# endif
/* find the video stream information */
m_pVideoState->m_iVideoStreamID = av_find_best_stream(m_pVideoState->m_pFormatCtx, AVMEDIA_TYPE_VIDEO, -1, -1, &m_pVideoState->m_pVideoCodec, 0);
@@ -418,7 +436,9 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
*/
//m_pVideoState->m_pCodecCtx->thread_count = 2;
//m_pVideoState->m_pCodecCtx->thread_type = FF_THREAD_FRAME;
-
+#ifdef DEBUG
+ LOG("Before Open2");
+#endif
if( avcodec_open2( m_pVideoState->m_pCodecCtx, m_pVideoState->m_pVideoCodec, NULL ) < 0 ){
sprintf(Buffer, "Could not open Video codec[%d] for %s", m_pVideoState->m_pCodecCtx->codec_id, URI );
LOG_ERROR( Buffer );
@@ -484,6 +504,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
};
};
};
+
#ifdef DEBUG
sprintf( tB, "Using Size [%dx%d]", m_nWidth, m_nHeight );
LOG( tB );
@@ -493,7 +514,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
m_nWidth,
m_nHeight,
AV_PIX_FMT_BGR24,
- SWS_BILINEAR );
+ SWS_BICUBIC );
LOG( tB );
#endif
m_pVideoState->m_pSwsCtx = sws_getContext(
@@ -503,7 +524,7 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
m_nWidth,
m_nHeight,
AV_PIX_FMT_BGR24,
- SWS_FAST_BILINEAR | SWS_ACCURATE_RND,//SWS_BILINEAR,//SWS_BICUBIC,
+ SWS_BICUBIC, //SWS_FAST_BILINEAR,// | SWS_ACCURATE_RND,//SWS_BILINEAR,//SWS_BICUBIC,
NULL,
NULL,
NULL
@@ -523,19 +544,20 @@ bool videoAVLIBSource::_open(char *URI, bool ShowDeviceMenu, float framerate, in
void videoAVLIBSource::m_fThreadProc( void ){
AVPacket * pPacket = NULL;
- cv::Mat mRGB( m_nHeight, m_nWidth, CV_8UC3 );
+ cv::Mat mRGB( m_nHeight, m_nWidth, CV_8UC3, cv::Scalar( 255, 0, 255 ) );
AVFrame * pFrame = NULL;
AVFrame * pFrameBGR = NULL;
uint8_t * pBGRbuffer = NULL;
int dec_ret;
char tB[256];
+ m_bThreadStatus = TH_WORKING;
pPacket = (AVPacket *) av_malloc( sizeof(AVPacket) );
- av_init_packet( pPacket );
if ( pPacket == NULL ) {
m_bThreadStatus = TH_ENDED;
LOG_ERROR("Error allocating AVPacket!");
} else {
+ av_init_packet( pPacket );
pFrame = av_frame_alloc();
if ( pFrame == NULL ) {
m_bThreadStatus = TH_ENDED;
@@ -545,22 +567,30 @@ void videoAVLIBSource::m_fThreadProc( void ){
if ( pFrameBGR == NULL ) {
m_bThreadStatus = TH_ENDED;
LOG_ERROR("Error allocating BGR AVFrame!");
- } else {
- pBGRbuffer = (uint8_t *) av_malloc( av_image_get_buffer_size( AV_PIX_FMT_BGR24, m_nWidth , m_nHeight , BUFFER_ALIGN ));
- if ( pBGRbuffer == NULL ) {
+ } else {
+ dec_ret = av_image_alloc ( pFrameBGR->data, pFrameBGR->linesize, m_nWidth, m_nHeight, AV_PIX_FMT_BGR24, BUFFER_ALIGN );
+ sprintf( tB, "Allocated: %d bytes to Frame", dec_ret );
+ LOG( tB );
+ if ( dec_ret < 0 ) {
m_bThreadStatus = TH_ENDED;
LOG_ERROR("Error allocating BGR AVFrame Buffer!");
} else {
- av_image_fill_arrays ( pFrameBGR->data, pFrameBGR->linesize, pBGRbuffer, AV_PIX_FMT_BGR24, m_nWidth, m_nHeight, BUFFER_ALIGN );
- pFrameBGR->width = m_nWidth;
- pFrameBGR->height = m_nHeight;
- m_pVideoState->m_bStatus = MS_ALOCATED;
- m_bThreadStatus = TH_WORKING;
+ //pBGRbuffer = (uint8_t *) av_malloc( av_image_get_buffer_size( AV_PIX_FMT_BGR24, m_nWidth , m_nHeight , BUFFER_ALIGN ));
+ //if ( pBGRbuffer == NULL ) {
+ // m_bThreadStatus = TH_ENDED;
+ // LOG_ERROR("Error allocating BGR AVFrame Buffer!");
+ //} else {
+ // av_image_fill_arrays ( pFrameBGR->data, pFrameBGR->linesize, pBGRbuffer, AV_PIX_FMT_BGR24, m_nWidth, m_nHeight, BUFFER_ALIGN );
+ //
+ // pFrameBGR->width = m_nWidth;
+ // pFrameBGR->height = m_nHeight;
+ // m_pVideoState->m_bStatus = MS_ALOCATED;
+
#ifdef DEBUG_EXTRA
- LOG("Video Reader Thread Started.");
+ LOG("Video Reader Thread Started.");
#endif
- };
- };
+ };
+ };
};
};
@@ -580,20 +610,30 @@ void videoAVLIBSource::m_fThreadProc( void ){
LOG("Presentation Started.");
#endif
while( m_pVideoState->m_bStatus < MS_CLOSING && m_bThreadStatus != TH_ENDED ){
+ //LOG("1");
if ( m_pMediaDestination != NULL ){
+ //LOG("2");
dec_ret = av_read_frame( m_pVideoState->m_pFormatCtx, pPacket );
+ //LOG("3");
if( dec_ret >= 0 ){
+ //LOG("4");
if( pPacket->stream_index == m_pVideoState->m_iVideoStreamID ){
+ //LOG("5");
m_pVideoState->m_bStatus = MS_PRESENT;
dec_ret = avcodec_send_packet( m_pVideoState->m_pCodecCtx, pPacket );
+ //LOG("6");
if( dec_ret < 0 && dec_ret != AVERROR(EAGAIN) /* && dec_ret != AVERROR_EOF */ ){
LOG_ERROR( "Error sending video package to decoder" );
m_pVideoState->m_bStatus = MS_CLOSING;
m_bThreadStatus = TH_ENDED;
} else {
+ //LOG("7");
while( dec_ret >= 0 && m_bThreadStatus != TH_ENDED ) {
+ //LOG("8");
dec_ret = avcodec_receive_frame( m_pVideoState->m_pCodecCtx, pFrame );
+ //LOG("9");
if( dec_ret == AVERROR(EAGAIN) || dec_ret == AVERROR_EOF ){
+ //LOG("S");
break;//Skip to next data
} else if( dec_ret < 0 ){
LOG_ERROR("Error decoding video frame");
@@ -601,10 +641,16 @@ void videoAVLIBSource::m_fThreadProc( void ){
m_bThreadStatus = TH_ENDED;
break;
};
+ //LOG("10");
sws_scale( m_pVideoState->m_pSwsCtx, (const uint8_t* const*)pFrame->data, pFrame->linesize, 0, m_pVideoState->m_pCodecCtx->height, pFrameBGR->data, pFrameBGR->linesize );
- try{
+ //LOG("11");
+ try{
+ //sprintf( tB, "Try to copy %d[%dx%d] bytes to %d[%dx%d]", pFrameBGR->linesize[0] * m_nHeight, pFrameBGR->width, pFrameBGR->height, mRGB.total() * mRGB.elemSize(), mRGB.cols, mRGB.rows );
+ //LOG(tB);
memcpy( mRGB.data, pFrameBGR->data[0], pFrameBGR->linesize[0] * m_nHeight );
+ //LOG("13");
m_pMediaDestination->pushFrame( mRGB, m_pOpaque );
+ //LOG("14");
} catch (cv::Exception & e) {
LOG_ERROR( e.msg.c_str() );
};
@@ -636,6 +682,9 @@ void videoAVLIBSource::m_fThreadProc( void ){
av_packet_unref( pPacket );
} else SLEEP( 20 );
};
+#ifdef DEBUG
+ LOG("Video Source Ended!");
+#endif
if ( pFrame != NULL ) {
av_frame_free( &pFrame );
};
@@ -648,7 +697,7 @@ void videoAVLIBSource::m_fThreadProc( void ){
m_pVideoState->m_bStatus = MS_CLOSED;
m_bThreadStatus = TH_ENDED;
#ifdef DEBUG
- LOG("Video Source Ended!");
+ LOG("Video Structures Cleared!");
#endif
};
diff --git a/lib/data/ponvif/ponvif.cpp b/lib/data/ponvif/ponvif.cpp
index a54c4ef9..d4494f9c 100644
--- a/lib/data/ponvif/ponvif.cpp
+++ b/lib/data/ponvif/ponvif.cpp
@@ -1798,7 +1798,6 @@ bool pOnvif::_send_request( CSTR url, CSTR post_string, bool mustReturnData ){
} else {
RetVal = m_pHttpAccessManager->accomplish( tRC );
};
- LOG( "->" );
};
m_mResponseProtector.unlock();
};
diff --git a/lib/data/protocol/protocolAT.cpp b/lib/data/protocol/protocolAT.cpp
new file mode 100644
index 00000000..bb0613d0
--- /dev/null
+++ b/lib/data/protocol/protocolAT.cpp
@@ -0,0 +1,75 @@
+#include "protocolAT.h"
+
+#define LOG( X ) m_pLog->Log( "pAT", this, X )
+
+#ifdef DEBUG
+ #define LOG_ERROR( X ) {\
+ char _tBfrErrMSG2w34[256];\
+ sprintf( _tBfrErrMSG2w34, "In file %s[%d] in func:%s %s",__FILE__, __LINE__, __func__, X );\
+ m_pLog->Log( "pAT", this, _LOG_ERROR, _tBfrErrMSG2w34 );\
+ }
+#else
+ #define LOG_ERROR( X ) m_pLog->Log( "pAT", this, _LOG_ERROR, X );
+#endif
+
+protocolAT::protocolAT(){
+
+};
+
+protocolAT::~protocolAT(){
+
+};
+
+bool protocolAT::create(void) {
+ if ( m_oDataTransport ) {
+ if( m_oDataTransport->getConnectionStatus() == CS_CONNECTED ){
+ // Turn Off Echo
+ m_oDataTransport->sendData( (unsigned char*)AT_BEG "E" AT_EOL, 5 );
+ waitResponce();
+ m_oDataTransport->sendData( (unsigned char*)AT_BEG "I" AT_EOL, 5 );
+ waitResponce();
+ };
+ };
+ return false;
+};
+
+int protocolAT::packetChecker(U8 *Buffer, size_t BufferSize){
+ if ( BufferSize ) {
+ if( Buffer[0] < 0x20 ) return -1;
+ if( Buffer[BufferSize-1] == 0x0A ) return 0;
+ };
+ return 1;
+};
+
+bool protocolAT::packetHandler(protocolPackage *Package) {
+};
+
+protocolPackage *protocolAT::packetExtractor(U8 *Buffer, size_t BufferSize) {
+ protocolPackage *tVal=NULL;
+ if( BufferSize ){
+ int idx = 0;
+ tVal = (protocolPackage *) malloc( sizeof(protocolPackage) );
+ if ( tVal ) {
+ memset( tVal, 0, sizeof(protocolPackage));
+ for (idx = 0; idx < BufferSize; idx++) {
+ if( Buffer[idx]==0x0D ) break;
+ };
+ tVal->m_nCode = 200;
+ if( idx < (BufferSize-2) ){
+ // Must be fetched OK status
+
+ };
+ } else {
+ LOG_ERROR("pkg malloc!");
+ }
+ };
+ return tVal;
+};
+
+void protocolAT::waitResponce( uint32_t TO ){
+ while( TO--) SLEEP(50);
+};
+
+#undef LOG
+#undef LOG_ERROR
+
diff --git a/lib/data/protocol/protocolAT.h b/lib/data/protocol/protocolAT.h
new file mode 100644
index 00000000..c19900d7
--- /dev/null
+++ b/lib/data/protocol/protocolAT.h
@@ -0,0 +1,24 @@
+#ifndef __AT_COMMANDS_PROTOCOL_HEADER__
+#define __AT_COMMANDS_PROTOCOL_HEADER__
+
+#include "protocol.h"
+
+#define AT_BEG "AT"
+#define AT_EOL "\n\r"
+
+
+class protocolAT: public protocolParser {
+ private:
+ basicLogCollection * m_pLog;
+ void waitResponce( uint32_t TO = 200 );
+ protected:
+ protocolPackage * packetExtractor(U8 *Buffer, size_t BufferSize) override;
+ int packetChecker(U8 *Buffer, size_t BufferSize) override;
+ bool packetHandler(protocolPackage *Package) override;
+ public:
+ protocolAT();
+ virtual ~protocolAT();
+ bool create(void) override;
+};
+
+#endif
diff --git a/lib/data/protocol/protocolLGS_data.h b/lib/data/protocol/protocolLGS_data.h
index a7853c4d..b46089d5 100644
--- a/lib/data/protocol/protocolLGS_data.h
+++ b/lib/data/protocol/protocolLGS_data.h
@@ -25,7 +25,7 @@ typedef enum E_LGS_STAGE{
STG_DISCONNECTED = 0x00,
STG_CONNECTED = 0x01,
STG_STUDY = 0x02,
- STG_REDY = 0x04,
+ STG_READY = 0x04,
STG_BUSY = 0x06,
STG_NONE = 0xFF
} LGS_STAGE;
diff --git a/lib/hardware/sensors/lrf/lrf_3d.cpp b/lib/hardware/sensors/lrf/lrf_3d.cpp
index 7284d530..1d79e7e2 100644
--- a/lib/hardware/sensors/lrf/lrf_3d.cpp
+++ b/lib/hardware/sensors/lrf/lrf_3d.cpp
@@ -60,14 +60,14 @@ sensorLGS3D::sensorLGS3D( uint32_t id, bool Master ):
/* Fill Some Data */
m_sDeviceStatus.CurrentOperation = CMD_NONE;
m_sDeviceStatus.Status = STG_NONE;
- m_sDeviceStatus.ComStatus = STG_REDY;
+ m_sDeviceStatus.ComStatus = STG_READY;
m_sDeviceStatus.ErrorOpCode = CMD_NONE;
m_sDeviceStatus.DoneByPercents = 0;
m_sDeviceStatus.ErrorOpStatus = SUB_DATA_INTEGRITY_UNKNOWN;
m_sDeviceStatus.PendingOperation = CMD_NONE;
m_sDeviceStatus.ProgressIsActive = false;
- sprintf( m_pHost, "192.168.200.105" );
- m_nPort = 2222;
+ sprintf( m_pHost, "192.168.200.100" );
+ m_nPort = 4444;
m_eWorkMode = CWM_INIT;
};
@@ -168,6 +168,9 @@ void sensorLGS3D::m_fThreadProc(void){
m_pEventHeap->broadcast( tEVT );
m_eStatus = OS_STATUS_INIT;
};
+ char tB[128];
+ sprintf( tB, "Connect to [%s:%d]", m_pHost, m_nPort );
+ LOG( tB );
if( !m_pTransport->connectTo( m_pHost, m_nPort ) ){
SLEEP( 1000 );
};
@@ -615,33 +618,36 @@ bool sensorLGS3D::packetHandler( protocolPackage* Package ) {
break;
case CMD_STATE_2:{
m_mStatusMutex.lock();
- if( SUB_CMD != m_sDeviceStatus.Status ){
- m_sDeviceStatus.Status = (E_LGS_STAGE)SUB_CMD;
- switch( m_sDeviceStatus.Status ){
- case STG_STUDY: {
- m_mStatusMutex.unlock();
- //EVENT_CONTAINER * tEVT;
- tEVT = createBasicEvent( m_DbId, EVT_CLASS_SENSOR_3D, EVT_STUDY, NULL, "Device in STUDY mode");
- m_pEventHeap->broadcast(tEVT);
- break;
- };
- case STG_REDY: {
- m_mStatusMutex.unlock();
- //basicEvent* tEVT;
- tEVT = createBasicEvent( m_DbId, EVT_CLASS_SENSOR_3D, EVT_READY, NULL, "Device in DETECTION mode");
- m_pEventHeap->broadcast(tEVT);
- break;
- };
- case STG_BUSY: {
- m_mStatusMutex.unlock();
- //basicEvent* tEVT;
- tEVT = createBasicEvent( m_DbId, EVT_CLASS_SENSOR_3D, EVT_ERROR, NULL, "Device in BUSY mode");
- m_pEventHeap->broadcast(tEVT);
- break;
+ if( m_eWorkMode != CWM_GET_STATUS ) {
+ LOG("Wrong WM - No Status Requested!");
+ } else {
+ E_LGS_STAGE tStatus = (E_LGS_STAGE)SUB_CMD;
+ if( m_sDeviceStatus.Status != tStatus ){
+ LOG("Device Status Changed!");
+ switch( tStatus ){
+ case STG_STUDY: {
+ //EVENT_CONTAINER * tEVT;
+ tEVT = createBasicEvent( m_DbId, EVT_CLASS_SENSOR_3D, EVT_STUDY, NULL, "Device in STUDY mode");
+ m_pEventHeap->broadcast(tEVT);
+ break;
+ };
+ case STG_READY: {
+ //basicEvent* tEVT;
+ tEVT = createBasicEvent( m_DbId, EVT_CLASS_SENSOR_3D, EVT_READY, NULL, "Device in DETECTION mode");
+ m_pEventHeap->broadcast(tEVT);
+ break;
+ };
+ case STG_BUSY: {
+ //basicEvent* tEVT;
+ tEVT = createBasicEvent( m_DbId, EVT_CLASS_SENSOR_3D, EVT_ERROR, NULL, "Device in BUSY mode");
+ m_pEventHeap->broadcast(tEVT);
+ break;
+ };
};
- default: m_mStatusMutex.unlock();
+ m_sDeviceStatus.Status = tStatus;
};
- } else m_mStatusMutex.unlock();
+ };
+ m_mStatusMutex.unlock();
if( pReceivedPackage[DATA_BEGIN_IDX] > 0 ){
uint8_t tCount = pReceivedPackage[DATA_BEGIN_IDX];
diff --git a/lib/rgoose/rgooseCamera.cpp b/lib/rgoose/rgooseCamera.cpp
index 9ebfc4b1..691b5bf7 100644
--- a/lib/rgoose/rgooseCamera.cpp
+++ b/lib/rgoose/rgooseCamera.cpp
@@ -135,13 +135,16 @@ bool ARGUS_Camera::create( uint32_t CameraID ){
sprintf( tB, "Minimal FOVs, Horizontal: %0.2f Vertical: %0.2f", m_fMaxHFov, m_fMaxVFov );
LOG(tB);
#endif
- m_pPosition = new basicPosition( m_sCamData.lat, m_sCamData.lon, m_sCamData.alt, m_sCamData.roll, m_sCamData.pitch, m_sCamData.yaw );
-
+ m_pPosition = new basicPosition();// m_sCamData.lat, m_sCamData.lon, m_sCamData.alt, m_sCamData.roll, m_sCamData.pitch, m_sCamData.yaw );
+
if( m_pPosition == NULL ) {
LOG_ERROR("Position Constructor Failure!");
return false;
};
+ m_pPosition->setPositionXYZ( m_sCamData.x, m_sCamData.y, m_sCamData.z );
+ m_pPosition->setOrientationDeg( m_sCamData.x_rot, m_sCamData.y_rot, m_sCamData.z_rot );
+
if( m_pProtocol != NULL ){
LOG_ERROR("Cannot Start: Service Already Running!");
return false;
@@ -798,10 +801,10 @@ bool ARGUS_Camera::connectToStream( uint32_t id ){
LOG("Source OK");
#endif
int tW = ((argusModuleEmbedVideo*)tKM)->getWidh();
- //int tH = ((argusModuleEmbedVideo*)tKM)->getHeight();
+ int tH = ((argusModuleEmbedVideo*)tKM)->getHeight();
if( tW > 0 ) {
- m_pSource->setProportionalByWidth( tW );
- //m_pSource->setSize( tW, tH );
+ //m_pSource->setProportionalByWidth( tW );
+ m_pSource->setSize( tW, tH );
};
if( strncmp( tDATA->mrl_proto, "v4l2", 4 ) == 0 ){
sprintf( tMRL, tDATA->mrl );
diff --git a/lib/rgoose/rgooseDBConnector.cpp b/lib/rgoose/rgooseDBConnector.cpp
index 44b41965..c483dcf0 100644
--- a/lib/rgoose/rgooseDBConnector.cpp
+++ b/lib/rgoose/rgooseDBConnector.cpp
@@ -453,29 +453,29 @@ bool argusDBC::getAllCamRecords( uint32_t SiteID, vectorCamRecords &VR ){
if( it != cArr->end() ){
tVal->protocol_aux = atoi( it->second.c_str() );
};
- it = cArr->find("lat");
+ it = cArr->find("x");
if( it != cArr->end() ){
- tVal->lat = atof( it->second.c_str() );
+ tVal->x = atof( it->second.c_str() );
};
- it = cArr->find("lon");
+ it = cArr->find("y");
if( it != cArr->end() ){
- tVal->lon = atof( it->second.c_str() );
+ tVal->y = atof( it->second.c_str() );
};
- it = cArr->find("alt");
+ it = cArr->find("z");
if( it != cArr->end() ){
- tVal->alt = atof( it->second.c_str() );
+ tVal->z = atof( it->second.c_str() );
};
- it = cArr->find("picth");
+ it = cArr->find("x_rot");
if( it != cArr->end() ){
- tVal->pitch = atof( it->second.c_str() );
+ tVal->x_rot = atof( it->second.c_str() );
};
- it = cArr->find("roll");
+ it = cArr->find("y_rot");
if( it != cArr->end() ){
- tVal->roll = atof( it->second.c_str() );
+ tVal->y_rot = atof( it->second.c_str() );
};
- it = cArr->find("yaw");
+ it = cArr->find("z_rot");
if( it != cArr->end() ){
- tVal->yaw = atof( it->second.c_str() );
+ tVal->z_rot = atof( it->second.c_str() );
};
it = cArr->find("imager_type");
if( it != cArr->end() ){
@@ -724,9 +724,9 @@ void argusDBC::lazyEventArchiver( uint32_t DalayTime ){
);
uint32_t IID = (uint32_t) m_pDatabase->QueryID(tQBuf);
sprintf(tQBuf,"UPDATE `events_2_pictures` SET `event_id`=%d WHERE `event_id`=%d", IID, LastID );
- m_pDatabase->SilentQuery(tQBuf);
+ //m_pDatabase->SilentQuery(tQBuf);
sprintf(tQBuf,"UPDATE `events_2_videos` SET `event_id`=%d WHERE `event_id`=%d", IID, LastID );
- m_pDatabase->SilentQuery(tQBuf);
+ //m_pDatabase->SilentQuery(tQBuf);
};
};
};
@@ -868,6 +868,58 @@ DBC_NET_IF_DATA *argusDBC::getNIF_Data( uint32_t nif_id ){
return tVal;
};
+uint32_t argusDBC::getNetworkInfrastructureID( uint32_t nif_id ){
+ uint32_t tVal = 0;
+ if(m_bIsConnected){
+ char tQBuf[CTEXT];
+ AAssoc *result;
+ sprintf(tQBuf, "SELECT id FROM `network_infrastructure` WHERE `nif_id`=%d", nif_id );
+#ifdef DEBUG
+ LOG(tQBuf);
+#endif
+ result = m_pDatabase->Query( tQBuf );
+ if( result!= NULL ) {
+ if( result->size() > 0 ) {
+ Assoc *cArr;
+ Assoc::iterator it;
+ cArr = result->at(0);
+ it = cArr->find("id");
+ if( it != cArr->end() ){
+ tVal = atoi( it->second.c_str() );
+ };
+ };
+ };
+ deleteResult( result );
+ };
+ return tVal;
+};
+
+uint32_t argusDBC::getWiFi_ID( uint32_t nif_id ){
+ uint32_t tVal = 0;
+ if(m_bIsConnected){
+ char tQBuf[CTEXT];
+ AAssoc *result;
+ sprintf(tQBuf, "SELECT `id` FROM `wifis` WHERE `nif_id`=%d", nif_id );
+#ifdef DEBUG
+ LOG(tQBuf);
+#endif
+ result = m_pDatabase->Query( tQBuf );
+ if( result!= NULL ) {
+ if( result->size() > 0 ) {
+ Assoc *cArr;
+ Assoc::iterator it;
+ cArr = result->at(0);
+ it = cArr->find("id");
+ if( it != cArr->end() ){
+ tVal = atoi( it->second.c_str() );
+ };
+ };
+ };
+ deleteResult( result );
+ };
+ return tVal;
+};
+
uint32_t argusDBC::getNIF_ID( CSTR key ){
uint32_t tVal = 0;
if(m_bIsConnected){
@@ -894,6 +946,32 @@ uint32_t argusDBC::getNIF_ID( CSTR key ){
return tVal;
};
+uint32_t argusDBC::getNIF_IDbyDevice( CSTR device ){
+ uint32_t tVal = 0;
+ if(m_bIsConnected){
+ char tQBuf[CTEXT];
+ AAssoc *result;
+ sprintf(tQBuf, "SELECT id FROM `network_interfaces` WHERE `device_name`='%s'", device );
+#ifdef DEBUG
+ LOG(tQBuf);
+#endif
+ result = m_pDatabase->Query( tQBuf );
+ if( result!= NULL ) {
+ if( result->size() > 0 ) {
+ Assoc *cArr;
+ Assoc::iterator it;
+ cArr = result->at(0);
+ it = cArr->find("id");
+ if( it != cArr->end() ){
+ tVal = atoi( it->second.c_str() );
+ };
+ };
+ };
+ deleteResult( result );
+ };
+ return tVal;
+};
+
DBC_NODE_DATA *argusDBC::getNodeData( uint32_t ID ){
DBC_NODE_DATA * tVal = NULL;
if(m_bIsConnected){
@@ -1198,29 +1276,29 @@ DBC_LRF_DATA *argusDBC::getLRFData( uint32_t ID ){
strncpy( tVal->version, it->second.c_str(), sizeof(tVal->version)-1 );
tVal->version[sizeof(tVal->version)-1]=(char)0;
};
- it = cArr->find("lat");
+ it = cArr->find("x");
if( it != cArr->end() ){
- tVal->lat = atof( it->second.c_str() );
+ tVal->x = atof( it->second.c_str() );
};
- it = cArr->find("lon");
+ it = cArr->find("y");
if( it != cArr->end() ){
- tVal->lon = atof( it->second.c_str() );
+ tVal->y = atof( it->second.c_str() );
};
- it = cArr->find("alt");
+ it = cArr->find("z");
if( it != cArr->end() ){
- tVal->alt = atof( it->second.c_str() );
+ tVal->z = atof( it->second.c_str() );
};
- it = cArr->find("pitch");
+ it = cArr->find("x_rot");
if( it != cArr->end() ){
- tVal->pitch = atof( it->second.c_str() );
+ tVal->x_rot = atof( it->second.c_str() );
};
- it = cArr->find("yaw");
+ it = cArr->find("y_rot");
if( it != cArr->end() ){
- tVal->yaw = atof( it->second.c_str() );
+ tVal->y_rot = atof( it->second.c_str() );
};
- it = cArr->find("roll");
+ it = cArr->find("z_rot");
if( it != cArr->end() ){
- tVal->roll = atof( it->second.c_str() );
+ tVal->z_rot = atof( it->second.c_str() );
};
it = cArr->find("uart_id");
if( it != cArr->end() ){
@@ -1608,9 +1686,9 @@ DBC_INT_LIST *argusDBC::listResources( uint32_t NodeID ){
char tQBuf[CTEXT];
AAssoc *result;
if( NodeID ) {
- sprintf(tQBuf, "SELECT `id` FROM `resources` WHERE `node_id`=%d AND `active`=1", NodeID );
+ sprintf(tQBuf, "SELECT `id` FROM `resources` WHERE `node_id`=%d AND `active`=1 AND `used`=1", NodeID );
} else {
- sprintf(tQBuf, "SELECT `re`.`id` FROM `resources` `re` LEFT JOIN `nodes` `no` ON( `re`.`node_id` = `no`.`id` ) WHERE `no`.`site_id`=%d AND `re`.`active`=1", m_nSiteID );
+ sprintf(tQBuf, "SELECT `re`.`id` FROM `resources` `re` LEFT JOIN `nodes` `no` ON( `re`.`node_id` = `no`.`id` ) WHERE `no`.`site_id`=%d AND `re`.`active`=1 AND `re`.`used`=1", m_nSiteID );
};
#ifdef DEBUG
LOG(tQBuf);
@@ -1797,29 +1875,29 @@ DBC_CAM_DATA *argusDBC::getCamData( uint32_t ID ){
if( it != cArr->end() ){
tVal->uart_id = atoi( it->second.c_str() );
};
- it = cArr->find("lat");
+ it = cArr->find("x");
if( it != cArr->end() ){
- tVal->lat = atof( it->second.c_str() );
+ tVal->x = atof( it->second.c_str() );
};
- it = cArr->find("lon");
+ it = cArr->find("y");
if( it != cArr->end() ){
- tVal->lon = atof( it->second.c_str() );
+ tVal->y = atof( it->second.c_str() );
};
- it = cArr->find("alt");
+ it = cArr->find("z");
if( it != cArr->end() ){
- tVal->alt = atof( it->second.c_str() );
+ tVal->z = atof( it->second.c_str() );
};
- it = cArr->find("picth");
+ it = cArr->find("x_rot");
if( it != cArr->end() ){
- tVal->pitch = atof( it->second.c_str() );
+ tVal->x_rot = atof( it->second.c_str() );
};
- it = cArr->find("roll");
+ it = cArr->find("x_rot");
if( it != cArr->end() ){
- tVal->roll = atof( it->second.c_str() );
+ tVal->y_rot = atof( it->second.c_str() );
};
- it = cArr->find("yaw");
+ it = cArr->find("x_rot");
if( it != cArr->end() ){
- tVal->yaw = atof( it->second.c_str() );
+ tVal->z_rot = atof( it->second.c_str() );
};
it = cArr->find("imager_type");
if( it != cArr->end() ){
@@ -2716,11 +2794,11 @@ DBC_UART_DATA *argusDBC::getUartData( uint32_t UartID ){
return tVal;
};
-uint32_t argusDBC::getUartID( uint32_t RessourceID ){
+uint32_t argusDBC::getUartID( uint32_t NodeID, uint8_t Type, CSTR path ){
uint32_t RetVal = 0;
if(m_bIsConnected){
char tQBuf[CTEXT];
- sprintf(tQBuf,"SELECT `id` FROM `uart_settings` WHERE `resource_id`=%d", RessourceID );
+ sprintf(tQBuf,"SELECT `id` FROM `uart_settings` WHERE `node_id`=%d AND `type`=%d AND `path`='%s' ", NodeID, Type, path );
#ifdef DEBUG_ALL
LOG(tQBuf);
#endif
@@ -2868,12 +2946,12 @@ uint32_t argusDBC::addLocalDCB( uint32_t SiteID, CSTR PATH, CSTR SERIAL, uint8_t
return RetVal;
};
-uint32_t argusDBC::addLocalUART( uint32_t ResID, uint8_t utype, uint32_t speed, uint8_t bit, char parity, float stop_bit, CSTR PATH, uint8_t mode, uint16_t port ){
+uint32_t argusDBC::addLocalUART( uint32_t NodeID, uint8_t utype, uint32_t speed, uint8_t bit, char parity, float stop_bit, CSTR PATH, uint8_t mode, uint16_t port ){
uint32_t RetVal = 0;
if( m_bIsConnected ) {
char tQBuf[MAX_PATH_LEN];
- sprintf( tQBuf, "INSERT INTO `uart_settings` SET `resource_id`=%d, `type`=%d, `speed`=%d, `bit`=%d, `parity`='%c', `stop_bit`=%.1f, `mode`=%d, `port`=%d, `path`='%s' ON DUPLICATE KEY UPDATE `id`=`id`",
- ResID,
+ sprintf( tQBuf, "INSERT INTO `uart_settings` SET `node_id`=%d, `type`=%d, `speed`=%d, `bit`=%d, `parity`='%c', `stop_bit`=%.1f, `mode`=%d, `port`=%d, `path`='%s' ON DUPLICATE KEY UPDATE `id`=`id`",
+ NodeID,
utype,
speed,
bit,
@@ -2888,22 +2966,27 @@ uint32_t argusDBC::addLocalUART( uint32_t ResID, uint8_t utype, uint32_t speed,
#endif
RetVal = m_pDatabase->QueryID( tQBuf );
if( RetVal == 0 ) {
- RetVal = getUartID( ResID );
+ RetVal = getUartID( NodeID, utype, PATH );
};
};
return RetVal;
};
-uint32_t argusDBC::addLocalNIF( CSTR device, CSTR mac, ARGUS_NIF_TYPE dtype ){
+uint32_t argusDBC::addLocalNIF( CSTR device, CSTR mac, ARGUS_NIF_TYPE dtype, ARGUS_NIF_MODE dmode, uint32_t aux_id ){
uint32_t RetVal = 0;
if( m_bIsConnected ) {
char tQBuf[MAX_PATH_LEN];
char * tKey = MD5String( device );
if( tKey != NULL ) {
- sprintf( tQBuf, "INSERT INTO `network_interfaces` SET `type`=%d, `key`='%s', `device_name`='%s', `mac`='%s' ON DUPLICATE KEY UPDATE `id`=`id`",
+ sprintf( tQBuf, "INSERT INTO `network_interfaces` SET `type`=%d, `key`='%s', `device_name`='%s', `mac`='%s', `mode`=%d, `aux_id`=%d ON DUPLICATE KEY UPDATE `mode`=%d, `aux_id`=%d, `mac`='%s'",
dtype,
tKey,
device,
+ mac,
+ dmode,
+ aux_id,
+ dmode,
+ aux_id,
mac
);
#ifdef DEBUG
@@ -2919,6 +3002,34 @@ uint32_t argusDBC::addLocalNIF( CSTR device, CSTR mac, ARGUS_NIF_TYPE dtype ){
return RetVal;
};
+uint32_t argusDBC::addLocalWiFi( uint32_t NIF_ID, ARGUS_WIFI_MODE mode, CSTR SSID, CSTR password, ARGUS_WIFI_ENCRIPTION encryption, uint32_t router_id ){
+ uint32_t RetVal = 0;
+ if( m_bIsConnected ) {
+ char tQBuf[MAX_PATH_LEN];
+ sprintf( tQBuf, "INSERT INTO `wifis` SET `nif_id`=%d, `mode`=%d, `aux_id`=%d, `SSID`='%s', `password`='%s', `encryption_type`=%d ON DUPLICATE KEY UPDATE `mode`=%d, `aux_id`=%d, `SSID`='%s', `password`='%s', `encryption_type`=%d",
+ NIF_ID,
+ mode,
+ router_id,
+ SSID,
+ password,
+ encryption,
+ mode,
+ router_id,
+ SSID,
+ password,
+ encryption
+ );
+#ifdef DEBUG
+ LOG(tQBuf);
+#endif
+ RetVal = m_pDatabase->QueryID( tQBuf );
+ if( RetVal == 0 ) {
+ RetVal = getWiFi_ID( NIF_ID );
+ };
+ };
+ return RetVal;
+};
+
uint32_t argusDBC::addLocalNetwork( uint32_t NIF_ID, ARGUS_NETWORK_TYPE net_type, CSTR address, CSTR mask, CSTR gateway, CSTR broadcast ){
uint32_t RetVal = 0;
if( m_bIsConnected ) {
@@ -2935,7 +3046,7 @@ uint32_t argusDBC::addLocalNetwork( uint32_t NIF_ID, ARGUS_NETWORK_TYPE net_type
mask,
broadcast
);
-#ifdef DEBUG_ALL
+#ifdef DEBUG
LOG(tQBuf);
#endif
RetVal = m_pDatabase->QueryID( tQBuf );
@@ -2947,6 +3058,58 @@ uint32_t argusDBC::addLocalNetwork( uint32_t NIF_ID, ARGUS_NETWORK_TYPE net_type
return RetVal;
};
+uint32_t argusDBC::addLocalNetworkInfrastructure( uint32_t NIF_ID, uint32_t OUTBOUND_NIF, bool ena_dhcp, CSTR BRANG, CSTR ERANG, CSTR MASK, CSTR LEASE_TIME ){
+ uint32_t RetVal = 0;
+ if( m_bIsConnected ) {
+ char tQBuf[MAX_PATH_LEN];
+ bool ena_routing = true;
+ if( OUTBOUND_NIF == 0 ){
+ ena_routing = false;
+ };
+ if( ena_dhcp ){
+ if ( BRANG == NULL || ERANG == NULL || MASK == NULL || LEASE_TIME == NULL ) {
+ LOG_ERROR("Wrong DHCP parameters to create Network Infrastructure!");
+ return 0;
+ };
+ sprintf(tQBuf, "INSERT INTO `network_infrastructure` SET `nif_id`=%d, `enable_routing`=%d, `outbond_nif`=%d, `enable_dhcp`=1, `dhcp_range_begin`='%s', `dhcp_range_end`='%s', `dhcp_range_mask`='%s', `dhcp_lease_time`='%s' ON DUPLICATE KEY UPDATE `enable_routing`=%d, `outbond_nif`=%d, `enable_dhcp`=1, `dhcp_range_begin`='%s', `dhcp_range_end`='%s', `dhcp_range_mask`='%s', `dhcp_lease_time`='%s'",
+ NIF_ID,
+ ena_routing,
+ OUTBOUND_NIF,
+ BRANG,
+ ERANG,
+ MASK,
+ LEASE_TIME,
+ ena_routing,
+ OUTBOUND_NIF,
+ BRANG,
+ ERANG,
+ MASK,
+ LEASE_TIME
+ );
+ } else {
+ if( ena_routing ){
+ sprintf(tQBuf, "INSERT INTO `network_infrastructure` SET `nif_id`=%d, `enable_routing`=1, `outbond_nif`=%d ON DUPLICATE KEY UPDATE `enable_routing`=1, `outbond_nif`=%d",
+ NIF_ID,
+ OUTBOUND_NIF,
+ OUTBOUND_NIF
+ );
+ } else {
+ LOG_ERROR("No Special Service Defined To Network Infrastructure!");
+ return 0;
+ };
+ };
+#ifdef DEBUG_ALL
+ LOG(tQBuf);
+#endif
+ RetVal = m_pDatabase->QueryID( tQBuf );
+ // On Update IF data no need to return ID
+ if( RetVal == 0 ) {
+ RetVal = getNetworkInfrastructureID( NIF_ID );
+ };
+ };
+ return RetVal;
+};
+
bool argusDBC::addDraw( uint32_t DBID, uint16_t SIZE, CSTR ID ){
if( m_bIsConnected ) {
char tQBuf[MAX_PATH_LEN];
diff --git a/lib/rgoose/rgooseDBConnector.h b/lib/rgoose/rgooseDBConnector.h
index 6fdaf058..a20bdfc8 100644
--- a/lib/rgoose/rgooseDBConnector.h
+++ b/lib/rgoose/rgooseDBConnector.h
@@ -37,13 +37,16 @@ class argusDBC{
bool addIPCam( uint32_t SiteID, OBSERVER_RESULT *tPtr );
uint32_t addLocalMediaSource( uint32_t SiteID, CSTR path, uint32_t width, uint32_t height );
uint32_t addLocalDCB( uint32_t SiteID, CSTR PATH, CSTR SERIAL, uint8_t CNT, uint32_t status );
- uint32_t addLocalUART( uint32_t ResID, uint8_t utype, uint32_t speed, uint8_t bit, char parity, float stop_bit, CSTR PATH, uint8_t mode=0, uint16_t port=0 );
- uint32_t addLocalNIF( CSTR device, CSTR mac, ARGUS_NIF_TYPE dtype );
+ uint32_t addLocalUART( uint32_t NodeID, uint8_t utype, uint32_t speed, uint8_t bit, char parity, float stop_bit, CSTR PATH, uint8_t mode=0, uint16_t port=0 );
+ uint32_t addLocalNIF( CSTR device, CSTR mac, ARGUS_NIF_TYPE dtype, ARGUS_NIF_MODE dmode, uint32_t aux_id = 0 );
uint32_t addLocalNetwork( uint32_t NIF_ID, ARGUS_NETWORK_TYPE net_type, CSTR address, CSTR mask, CSTR gateway, CSTR broadcast );
+ uint32_t addLocalNetworkInfrastructure( uint32_t NIF_ID, uint32_t OUTBOUND_NIF, bool ena_dhcp=false, CSTR BRANG=NULL, CSTR ERANG=NULL, CSTR MASK=NULL, CSTR LEASE_TIME=NULL );
+ uint32_t addLocalWiFi( uint32_t NIF_ID, ARGUS_WIFI_MODE mode, CSTR SSID, CSTR password, ARGUS_WIFI_ENCRIPTION encryption, uint32_t router_id=0 );
bool addNotification( uint32_t MSG_ID, uint8_t DIS_LVL = 0, uint32_t OBJ_ID=0 );
uint32_t addPicture( uint32_t streamID, CSTR md5, CSTR ext );
bool addPictureEvent( uint32_t evtID, uint32_t pictureoID );
uint32_t addResource( uint32_t NodeID, uint8_t type, CSTR devName, uint32_t auxID = 0 );
+ uint32_t addUploadFile( uint32_t NodeID, CSTR uid, CSTR fileName );
bool addVideoEvent( uint32_t evtID, uint32_t videoID );
uint32_t addVideoRecord( uint32_t streamID, CSTR md5, uint32_t partID );
@@ -85,9 +88,10 @@ class argusDBC{
DBC_MODULE_DATA * getModuleData( uint32_t ID );
DBC_NETWORK_DATA * getNetworkData( uint32_t net_id );
+ uint32_t getNetworkInfrastructureID( uint32_t nif_id );
DBC_NET_IF_DATA * getNIF_Data( uint32_t ID );
uint32_t getNIF_ID( CSTR key );
-
+ uint32_t getNIF_IDbyDevice( CSTR device );
DBC_NODE_DATA * getNodeData( uint32_t ID );
DBC_PUSHED_CMD * getNodePushedCMD( uint32_t NodeID );
@@ -101,8 +105,8 @@ class argusDBC{
//DBC_SOCKET_DATA * getSocketData( uint32_t ID );
DBC_TARGET_FLITER_DATA * getTargetFilterData( uint32_t ID );
DBC_UART_DATA * getUartData( uint32_t UartID );
- uint32_t getUartID( uint32_t RessourceID );
-
+ uint32_t getUartID( uint32_t NodeID, uint8_t Type, CSTR path );
+ uint32_t getWiFi_ID( uint32_t nif_id );
diff --git a/lib/rgoose/rgooseHardwareManager.cpp b/lib/rgoose/rgooseHardwareManager.cpp
index 8d1afcf0..402a8ea0 100644
--- a/lib/rgoose/rgooseHardwareManager.cpp
+++ b/lib/rgoose/rgooseHardwareManager.cpp
@@ -34,6 +34,9 @@ argusHardwareManager* argusHardwareManager::getInstance( bool cold_start ) {
return _instance;
};
+#include
+#include
+
argusHardwareManager::argusHardwareManager( bool cold_start ){
m_pLog = basicLogCollection::getInstance();
//m_bHardwareEnumerated = false;
@@ -54,6 +57,14 @@ argusHardwareManager::argusHardwareManager( bool cold_start ){
LOG_ERROR( "Failure to get DBC Instance -> Forced HW Enumeration!" );
enumerateHardware();
} else {
+ char tB[128];
+ struct rlimit rl={0};
+ getrlimit( RLIMIT_STACK, &rl );
+
+ sprintf( tB, "Stack Size: %d", rl.rlim_cur ); //RLIM_INFINITY
+ LOG( tB );
+ sprintf( tB, "MAX Stack Size: %d", rl.rlim_max );
+ LOG( tB );
//enumerateHardware( !cold_start );
enumerateNIFS();
#ifdef DEBUG
@@ -227,6 +238,9 @@ void argusHardwareManager::getMAC( CSTR if_name, CSTR buf ){
FILE * fd=NULL;
if ( buf ) {
sprintf(tB, "/sys/class/net/%s/address", if_name);
+#ifdef DEBUG
+ LOG( tB );
+#endif
fd=fopen(tB,"r");
if ( fd ) {
fread( buf, 1, INET6_ADDRSTRLEN, fd );
@@ -235,9 +249,320 @@ void argusHardwareManager::getMAC( CSTR if_name, CSTR buf ){
} else {
memset( buf, 0, INET6_ADDRSTRLEN );
};
+#ifdef DEBUG
+ LOG( buf );
+#endif
+ };
+};
+
+void argusHardwareManager::getGW( CSTR if_name, CSTR buf ){
+ FILE * fd = popen( "route", "r" );
+ char tB[1024];
+ //char expBuf[1024];
+
+ memset( buf, 0, INET6_ADDRSTRLEN );
+
+ if ( fd ) {
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd);
+ trim((CSTR)tB);
+ if( strlen(tB) ) {
+ if( strstr( tB, if_name ) != NULL ){
+ //strncpy( expBuf, tB, 1024 );
+ CArray *CA = explode( ' ', tB );
+ if ( CA ) {
+ //for (int i=0; i< CA->size(); i++ ) {
+ // char tB[128];
+ // trim( CA->at(i) );
+ // sprintf( tB, "GW# %d: %s", i, CA->at(i) );
+ // LOG( tB );
+ //};
+ trim( CA->at(1) );
+ if( strstr(CA->at(1), "0.0.0.0") == NULL ) {
+ strncpy( buf, CA->at(1), INET6_ADDRSTRLEN );
+ };
+ delete(CA);
+ };
+ };
+ };
+ };
+ fclose( fd );
+ };
+ if( strlen( buf ) == 0 ) strncpy( buf, "0.0.0.0", INET6_ADDRSTRLEN );
+};
+
+void argusHardwareManager::getTTyDesc( CSTR dev_name, CSTR buf ){
+ FILE * fd = popen( "dmesg | grep tty", "r" );
+ char tB[1024];
+ //char expBuf[1024];
+
+ memset( buf, 0, DBC_RESOURCE_DESC_SIZE );
+
+ if ( fd ) {
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd);
+ trim((CSTR)tB);
+ if( strlen(tB) ) {
+ if( strstr( tB, dev_name ) != NULL ){
+ //strncpy( expBuf, tB, 1024 );
+ CArray *CA = explode( ':', tB );
+ if ( CA ) {
+ //for (int i=0; i< CA->size(); i++ ) {
+ // char tB[128];
+ // trim( CA->at(i) );
+ // sprintf( tB, "GW# %d: %s", i, CA->at(i) );
+ // LOG( tB );
+ //};
+ trim( CA->at(1) );
+ strncpy( buf, CA->at(1), DBC_RESOURCE_DESC_SIZE );
+ buf[DBC_RESOURCE_DESC_SIZE-1]=(char)0;
+ delete(CA);
+ };
+ };
+ };
+ };
+ fclose( fd );
+ };
+ if( strlen( buf ) == 0 ){
+ strncpy( buf, "--Unknown--", DBC_RESOURCE_DESC_SIZE );
+ buf[DBC_RESOURCE_DESC_SIZE-1]=(char)0;
};
};
+PARSE_RESULT_NET_INTERFACES *argusHardwareManager::parse_neconfig( CSTR if_name ){
+ PARSE_RESULT_NET_INTERFACES *tVal = NULL;
+ FILE *fd;
+ bool cConfig = false;
+ fd = fopen("/etc/network/interfaces","r");
+ if ( fd ) {
+ char tB[1024];
+ char expBuf[1024];
+ tVal = (PARSE_RESULT_NET_INTERFACES *) malloc( sizeof(PARSE_RESULT_NET_INTERFACES));
+ if ( tVal ) {
+ memset(tVal, 0 , sizeof(PARSE_RESULT_NET_INTERFACES));
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd);
+ trim((CSTR)tB);
+ if( strlen(tB) ) {
+ strncpy( expBuf, tB, 1024 );
+ CArray *CA = explode( ' ', expBuf );
+ if( CA ) {
+ for( CArray::iterator idx = CA->begin(); idx < CA->end(); idx++ ) {
+ if((*idx)[0]=='#') break;
+ if(strstr((*idx), "auto")!= NULL ) if( strstr( tB, if_name )!= NULL ) tVal->enabled = true;
+ if(strstr((*idx), "allow-hotplug")!= NULL ) if( strstr( tB, if_name )!= NULL ) tVal->hot_plug = true;
+ if(strstr((*idx), "iface")!= NULL ) if( strstr( tB, if_name )!= NULL ){
+ if (strstr( tB, "static") != NULL) tVal->if_static = true;
+ cConfig = true;
+ } else cConfig = false;
+ if(strstr((*idx), "address")!= NULL ) if( cConfig ){
+ idx++;
+ if(strstr((*idx),"/")!= NULL ){
+ int8_t sh = strstr((*idx),"/") - (*idx);
+ strncpy( tVal->address, (*idx), sh );
+ tVal->address[sh]=(char)0;
+ int8_t bm = atoi( (*idx) + sh + 1 );
+ union{
+ uint32_t mm;
+ uint8_t nm[4];
+ } nmu = {0};
+ for ( sh = 0; sh < bm; sh++ ) nmu.mm |= (1 << sh);
+ sprintf(tVal->netmask, "%d.%d.%d.%d", nmu.nm[0], nmu.nm[1], nmu.nm[2], nmu.nm[3]);
+ } else {
+ strncpy( tVal->address, (*idx), INET6_ADDRSTRLEN );
+ };
+ };
+ if(strstr((*idx), "netmask")!= NULL ) if( cConfig ){
+ LOG("netMSK");
+ idx++;
+ LOG(*idx);
+ strncpy(tVal->netmask, (*idx), INET6_ADDRSTRLEN);
+ };
+ //if(strstr((*idx), "bridge_ports")!= NULL ) cMode = 6;
+ //if(strstr((*idx), "bridge_stp")!= NULL ) cMode = 7;
+ //if(strstr((*idx), "bridge_waitport")!= NULL ) cMode = 8;
+ //if(strstr((*idx), "bridge_fd")!= NULL ) cMode = 9;
+ };
+ delete( CA );
+ };
+ };
+ };
+ };
+ fclose( fd );
+ };
+#ifdef DEBUG
+ if ( tVal ) {
+ if( tVal->enabled ) LOG("NIF Enabled"); else LOG("NIF Disabled");
+ if (tVal->hot_plug) LOG("NIF Hot Plugable"); else LOG("NIF not Hot Plugable");
+ if (tVal->if_static) LOG("Address is static"); else LOG("Address is Dynamic");
+ if(strlen(tVal->address))LOG(tVal->address);
+ if(strlen(tVal->netmask))LOG(tVal->netmask);
+ };
+#endif
+ return tVal;
+};
+
+PARSE_RESULT_WIFI_SETTINGS *argusHardwareManager::parse_wifi( CSTR if_name ){
+ PARSE_RESULT_WIFI_SETTINGS *tVal = NULL;
+ FILE *fd;
+ bool cConfig = false;
+
+ tVal = (PARSE_RESULT_WIFI_SETTINGS *) malloc( sizeof(PARSE_RESULT_WIFI_SETTINGS));
+ if ( tVal ) {
+ memset(tVal, 0 , sizeof(PARSE_RESULT_WIFI_SETTINGS));
+ fd = fopen("/etc/dnsmasq.conf","r");
+ if ( fd ) {
+ char tB[1024];
+ char expBuf[1024];
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd);
+ trim((CSTR)tB);
+ if( strlen(tB) ) {
+ strncpy( expBuf, tB, 1024 );
+ CArray *CA = explode( '=', expBuf );
+ if( CA ) {
+ if( CA->size() ){
+ if( CA->at(0)[0] == '#' ) continue;
+ if( strstr(CA->at(0), "interface")!= NULL ) {
+ if( strstr( tB, if_name)!= NULL ) {
+ cConfig = true;
+ tVal->dhcp_enabled = true;
+ };
+ };
+ if( cConfig ){
+ if ( strstr(CA->at(0), "dhcp-range")!= NULL ) {
+ char tT[1024];
+ strncpy( tT, CA->at(1), 1024 );
+ CArray *CB = explode(',', tT );
+ if( CB ){
+ if( CB->size() > 3 ){
+ strncpy( tVal->range_start, CB->at(0), INET6_ADDRSTRLEN);
+ strncpy( tVal->range_stop, CB->at(1), INET6_ADDRSTRLEN);
+ strncpy( tVal->netmask, CB->at(2), INET6_ADDRSTRLEN);
+ strncpy( tVal->lease_period, CB->at(3), INET6_ADDRSTRLEN);
+ };
+ delete( CB );
+ };
+ };
+ };
+ };
+ delete( CA );
+ };
+ };
+ };
+ fclose( fd );
+ };
+ //Check WiFi
+ if( strstr(if_name,"w")!= NULL ) {
+ char tName[128];
+ sprintf( tName, "iwconfig %s", if_name );
+ fd = popen( tName, "r" );
+ if ( fd ) {
+ char tB[1024];
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd );
+ trim( tB );
+ if (strstr(tB, "Mode") != NULL) if (strstr(tB, "Master") != NULL) tVal->access_point = true;
+ };
+ fclose( fd );
+ };
+ };
+ if ( tVal->access_point ) {
+ fd = fopen("/etc/hostapd/hostapd.conf", "r");
+ if ( fd ) {
+ char tB[1024];
+ char expBuf[1024];
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd);
+ trim( tB );
+ if( strlen(tB) ) {
+ if( tB[0]=='#' ) continue;
+ strncpy(expBuf, tB, 1024);
+ CArray *CA = explode( '=', expBuf );
+ if( CA ) {
+ if( CA->size() ){
+ if (strstr(CA->at(0), "ssid") != NULL) if (strstr(CA->at(0), "ignore_broadcast_ssid") == NULL){
+ strncpy( tVal->SSID, CA->at(1), 64 );
+ } else tVal->hiden_ssid = (bool) atoi(CA->at(1));
+ if (strstr(CA->at(0), "wpa_passphrase") != NULL) strncpy( tVal->password, CA->at(1), 64 );
+ if (strstr(CA->at(0), "country_code") != NULL) strncpy(tVal->country_code, CA->at(1), 3);
+ if (strstr(CA->at(0), "channel") != NULL) tVal->channel = atoi(CA->at(1));
+ };
+ delete( CA );
+ };
+ };
+ };
+ fclose( fd );
+ };
+ } else {
+ fd = fopen("/etc/wpa_supplicant/wpa_supplicant.conf", "r");
+ if ( fd ) {
+
+ fclose( fd );
+ };
+ };
+ fd = fopen("/etc/rc.local","r");
+ if ( fd ) {
+ char tB[1024];
+ char expBuf[1024];
+ while (!feof(fd)) {
+ fgets((CSTR)tB, 1024, fd);
+ trim((CSTR)tB);
+ if( strlen(tB) ) {
+ strncpy( expBuf, tB, 1024 );
+ CArray *CA = explode( ' ', expBuf );
+ if( CA ) {
+ if ( CA->size() ) {
+ if (CA->at(0)[0] == '#') continue;
+ if( strstr(CA->at(0), "iptables-restore")!= NULL ) {
+ char zB[1024];
+ FILE *afd = fopen( CA->at(2), "r" );
+ if ( afd ) {
+ while( !feof( afd ) ){
+ fgets((CSTR)zB, 1024, afd );
+ if( strstr( zB, "POSTROUTING" )!= NULL ) if( strstr( zB, "MASQUERADE" )!= NULL ) if( strstr( zB, if_name )== NULL ){
+ CArray *CB = explode( ' ', zB );
+ if ( CB ) {
+ if ( CB->size() > 3 ) {
+ strncpy(tVal->router_outbond, CB->at(3), INET6_ADDRSTRLEN);
+ };
+ delete( CB );
+ };
+ tVal->router_enabled = true;
+ };
+ };
+ fclose(afd);
+ } else LOG("Error Opening Firewall Rules!");
+ };
+ };
+ delete( CA );
+ };
+ };
+ };
+ fclose(fd);
+ } else LOG_ERROR("Can not open rc.local!");
+ };
+#ifdef DEBUG
+ if ( tVal ) {
+ if (tVal->access_point) LOG("AP Mode"); else LOG("WiFi Mode");
+ LOG(tVal->SSID);
+ if (tVal->hiden_ssid) LOG("SSID is hidden");
+ LOG(tVal->password);
+ if (tVal->dhcp_enabled){
+ LOG("DHCP Service");
+ LOG(tVal->range_start);
+ LOG(tVal->range_stop);
+ LOG(tVal->lease_period);
+ } else LOG("DHCP Disabled");
+ if (tVal->router_enabled){
+ LOG("Routing Enabled");
+ LOG( tVal->router_outbond );
+ } else LOG("Routing Disabled");
+ };
+#endif
+ return tVal;
+};
+
void argusHardwareManager::enumerateNIFS( void ){
struct ifaddrs * ifaddr = NULL;
char tBuffer[128];
@@ -252,23 +577,27 @@ void argusHardwareManager::enumerateNIFS( void ){
LOG("Enumerating Network Interfaces");
#endif
struct ifaddrs * ifa;
- char addr[INET6_ADDRSTRLEN];
- char mask[INET6_ADDRSTRLEN];
- char gw[INET6_ADDRSTRLEN];
- char bc[INET6_ADDRSTRLEN];
- char mac[INET6_ADDRSTRLEN];
- char device[INET6_ADDRSTRLEN];
-
- uint32_t nif_id;
- ARGUS_NIF_TYPE nif_type;
- ARGUS_NETWORK_TYPE net_type;
- ARGUS_RESOURCE_TYPE res_type;
+
for( ifa = ifaddr; ifa; ifa = ifa->ifa_next ){
+ char addr[INET6_ADDRSTRLEN];
+ char mask[INET6_ADDRSTRLEN];
+ char gw[INET6_ADDRSTRLEN];
+ char bc[INET6_ADDRSTRLEN];
+ char mac[INET6_ADDRSTRLEN];
+ char device[INET6_ADDRSTRLEN];
+
+ uint32_t nif_id = 0;
+ uint32_t nif_aux_id = 0;
+ uint32_t router_id = 0;
+ ARGUS_NIF_TYPE nif_type = NIF_LOOPBACK;
+ ARGUS_NETWORK_TYPE net_type = NETWORK_IPV4;
+ ARGUS_RESOURCE_TYPE res_type = ARGUS_HARDWARE_NIF_LOOPBACK;
+ ARGUS_NIF_MODE nif_mode = ADDRESS_DISABLED;
#ifdef DEBUG_EXTRA
LOG("NIF ***");
#endif
strncpy( device, ifa->ifa_name, INET6_ADDRSTRLEN );
- strncpy( mac,"10928", INET6_ADDRSTRLEN );
+ strncpy( mac,"--no-mac--", INET6_ADDRSTRLEN );
// Filter Loopback if
if( strstr( device, "lo" ) != NULL ){
nif_type = NIF_LOOPBACK;
@@ -293,11 +622,88 @@ void argusHardwareManager::enumerateNIFS( void ){
nif_type = NIF_WIFI;
res_type = ARGUS_HARDWARE_NIF_WIFI;
};
- if( ifa->ifa_addr->sa_family != AF_INET && ifa->ifa_addr->sa_family != AF_INET6 ) continue;
+ if( strstr( device, "wwan" ) != NULL ){
+ LOG(device);
+ nif_type = NIF_WAN;
+ res_type = ARGUS_HARDWARE_NIF_WAN;
+ };
+ if( ifa->ifa_addr != NULL ){
+ if (ifa->ifa_addr->sa_family != AF_INET && ifa->ifa_addr->sa_family != AF_INET6) {
+ LOG("CONT");
+ continue;
+ }
+ } else {
+ LOG("ifa->ifa_addr is NULL");
+ continue;
+ };
+ LOG("GETMAC");
getMAC( device, mac );
+ getGW( device, gw );
LOG( mac );
- nif_id = m_pDBC->addLocalNIF( device, mac, nif_type );
+ LOG( gw );
+ PARSE_RESULT_NET_INTERFACES * tt = NULL;
+ PARSE_RESULT_WIFI_SETTINGS * tw = NULL;
+ tt = parse_neconfig( device );
+ tw = argusHardwareManager::parse_wifi( device );
+ if( tt ) {
+ if ( tt->enabled ) {
+ if( tt->if_static ){
+ nif_mode = ADDRESS_STATIC;
+ } else {
+ nif_mode = ADDRESS_DYNAMIC;
+ };
+ } else {
+ nif_mode = ADDRESS_DISABLED;
+ };
+ } else {
+ LOG_ERROR("Error Parsing System NIF Settings!");
+ continue;
+ };
+ if ( tw ){
+ if( nif_mode == ADDRESS_STATIC ) {
+ if (tw->dhcp_enabled) {
+ nif_mode = ADDRESS_STATIC_RAP;
+ };
+ };
+ if ( nif_type == NIF_WIFI ){
+ nif_id = m_pDBC->addLocalNIF( device, mac, nif_type, nif_mode );
+ if( nif_id == 0 ) continue;
+ ARGUS_WIFI_MODE w_mode;
+ if( !tt->enabled ) {
+ w_mode = WIFI_DISABLED;
+ } else {
+ if (tt->if_static) {
+ if( tw->access_point ) {
+ w_mode = WIFI_IS_AP;
+ uint32_t outbond_id = 0;
+ if( tw->router_enabled ){
+ outbond_id = m_pDBC->getNIF_IDbyDevice( tw->router_outbond );
+ };
+ if( tw->dhcp_enabled ) {
+ router_id = m_pDBC->addLocalNetworkInfrastructure(nif_id, outbond_id, true, tw->range_start, tw->range_stop, tw->netmask, tw->lease_period );
+ } else {
+ router_id = m_pDBC->addLocalNetworkInfrastructure(nif_id, outbond_id );
+ };
+ } else {
+ w_mode = WIFI_CONNECTED_TO_AP;
+ };
+ };
+ };
+ nif_aux_id = m_pDBC->addLocalWiFi(nif_id, w_mode, tw->SSID, tw->password, ENCRIPTION_WPA_PSK, router_id );
+ };
+ if( nif_type == NIF_ETHERNET || nif_type == NIF_ETHERNET_VIRTUAL ){
+
+ };
+ free(tt);
+ free(tw);
+ } else {
+ LOG_ERROR("Error Parsing System Router/AP Settings!");
+ free(tt);
+ continue;
+ };
+ nif_id = m_pDBC->addLocalNIF( device, mac, nif_type, nif_mode, nif_aux_id );
if( nif_id == 0 ) continue;
+
LOG("NIF added!");
m_pDBC->addResource( m_nServerNodeID, res_type, device, nif_id );
if(ifa->ifa_addr->sa_family == AF_INET){
@@ -317,7 +723,6 @@ void argusHardwareManager::enumerateNIFS( void ){
(uint8_t)ifa->ifa_ifu.ifu_broadaddr->sa_data[4],
(uint8_t)ifa->ifa_ifu.ifu_broadaddr->sa_data[5]
);
- sprintf( gw, "" );
} else { // AF_INET6
net_type = NETWORK_IPV6;
// create IPv6 string
@@ -363,7 +768,6 @@ void argusHardwareManager::enumerateNIFS( void ){
} else {
sprintf( bc, "" );
};
- sprintf( gw, "" );
};
m_pDBC->addLocalNetwork( nif_id, net_type, addr, mask, gw, bc );
#ifdef DEBUG
@@ -518,7 +922,8 @@ uint32_t argusHardwareManager::createResourceUART( CSTR devName ){
sprintf( tBuffer, "Cannot open '%s': %d, %s\\n", dev_name, errno, strerror(errno));
LOG_ERROR( tBuffer );
} else {
- if (-1 == xioctl(fd, TIOCGSERIAL, &ss)){
+
+ if ( 0 && ( -1 == xioctl(fd, TIOCGSERIAL, &ss) )){
LOG_ERROR("TIOCGSERIAL");
} else {
#ifdef DEBUG_EXTRA
@@ -532,17 +937,10 @@ uint32_t argusHardwareManager::createResourceUART( CSTR devName ){
);
LOG( tBuffer );
#endif
- char comName[16];
- int pn = atoi( devName+4 ) + 1;
- sprintf( comName,"COM%d", pn );
- //uint32_t dbid = m_pDBC->addNodeSocket( m_nServerNodeID, m_nServerID, ARGUS_NODE_SOCK_TYPE_SERIAL_PORT, ARGUS_NODE_SOCK_MODE_INOUT, true, dev_name, comName );
- //if( dbid == 0 ) {
- // Socket Allredy in DB - was just updated
- // dbid = m_pDBC->getNodeSocketID( m_nServerNodeID, m_nServerID, ARGUS_NODE_SOCK_TYPE_SERIAL_PORT, dev_name );
- //};
- RetVal = m_pDBC->addResource( m_nServerNodeID, ARGUS_HARDWARE_UART, dev_name );
- if( RetVal ) {
- m_pDBC->updateResourceAUX( RetVal, m_pDBC->addLocalUART( RetVal, 1, 115200, 8, 'N', 1.0f, dev_name ) );
+ getTTyDesc( devName, tBuffer );
+ uint32_t tID = m_pDBC->addLocalUART( m_nServerNodeID, 1, 115200, 8, 'N', 1.0f, dev_name );
+ if ( tID ) {
+ m_pDBC->addResource( m_nServerNodeID, ARGUS_HARDWARE_UART, tBuffer, tID );
};
};
close(fd);
@@ -677,3 +1075,4 @@ DBC_INT_LIST *argusHardwareManager::requestResourcesByType( ARGUS_HARDWARE_PROVI
#undef CLEAR
#undef LOG
#undef LOG_ERROR
+
diff --git a/lib/rgoose/rgooseHardwareManager.h b/lib/rgoose/rgooseHardwareManager.h
index ec13a49c..91ef67ed 100644
--- a/lib/rgoose/rgooseHardwareManager.h
+++ b/lib/rgoose/rgooseHardwareManager.h
@@ -4,9 +4,40 @@
#include "../components/base/basicLogCollection.h"
#include "rgooseHardwareResource.h"
+#define DBC_RESOURCE_DESC_SIZE 64
+
class argusKernel;
class argusDBC;
+
+typedef struct S_PARSE_RESULT_NET_INTERFACES{
+ bool enabled;
+ bool if_static;
+ bool hot_plug;
+ char address[INET6_ADDRSTRLEN];
+ char netmask[INET6_ADDRSTRLEN];
+ char gateway[INET6_ADDRSTRLEN];
+}PARSE_RESULT_NET_INTERFACES;
+
+typedef struct S_PARSE_RESULT_WIFI_SETTINGS{
+ char SSID[64];
+ char password[64];
+ ARGUS_WIFI_ENCRIPTION encryption;
+ bool access_point;
+ uint8_t channel;
+ char country_code[3];
+ bool hiden_ssid;
+ /* Router Settings */
+ bool router_enabled;
+ char router_outbond[INET6_ADDRSTRLEN];
+ /* DHCP */
+ bool dhcp_enabled;
+ char range_start[INET6_ADDRSTRLEN];
+ char range_stop[INET6_ADDRSTRLEN];
+ char netmask[INET6_ADDRSTRLEN];
+ char lease_period[INET6_ADDRSTRLEN];
+}PARSE_RESULT_WIFI_SETTINGS;
+
class argusHardwareManager{
private:
argusKernel * m_pKernel;
@@ -29,6 +60,11 @@ class argusHardwareManager{
uint32_t createResourceNETWORK( CSTR devName );
void enumerateNIFS( void );
void getMAC( CSTR if_name, CSTR buf );
+ void getGW( CSTR if_name, CSTR buf );
+ void getTTyDesc( CSTR dev_name, CSTR buf );
+ /* Linux System Parsers */
+ PARSE_RESULT_NET_INTERFACES * parse_neconfig( CSTR if_name );
+ PARSE_RESULT_WIFI_SETTINGS * parse_wifi( CSTR if_name );
public:
virtual ~argusHardwareManager();
static argusHardwareManager * getInstance( bool cold_start = true );
diff --git a/lib/rgoose/rgooseHardwareResourceSerialProvider.cpp b/lib/rgoose/rgooseHardwareResourceSerialProvider.cpp
index cdd2c63e..33f2efb6 100644
--- a/lib/rgoose/rgooseHardwareResourceSerialProvider.cpp
+++ b/lib/rgoose/rgooseHardwareResourceSerialProvider.cpp
@@ -78,42 +78,46 @@ bool argusHardwareResourceSerialProvider::validate( void ){
m_bValid = pingDevice();
if( !m_bValid ) closePort();
};
-
+ break;
+ };
+ };
#ifdef DEBUG_EXTRA
- LOG("Check Settings For Changes");
+ LOG("Check Settings For Changes");
#endif
- if( tDATA!= NULL ){
- bool bFlag = true;
- if( strcmp(tDATA->path,m_sUartData.path)!= 0 ) bFlag = false;
- if( bFlag && ( m_sUartData.speed != tDATA->speed ) ) bFlag = false;
- if( bFlag && ( m_sUartData.mode != tDATA->mode ) ) bFlag = false;
- if( bFlag && ( m_sUartData.port != tDATA->port ) ) bFlag = false;
- if( !bFlag ) {
- memcpy( &m_sUartData, tDATA, sizeof(DBC_UART_DATA));
+ if( tDATA!= NULL ){
+ bool bFlag = true;
+ if( strcmp(tDATA->path,m_sUartData.path)!= 0 ) bFlag = false;
+ if( bFlag && ( m_sUartData.speed != tDATA->speed ) ) bFlag = false;
+ if( bFlag && ( m_sUartData.mode != tDATA->mode ) ) bFlag = false;
+ if( bFlag && ( m_sUartData.port != tDATA->port ) ) bFlag = false;
+ if( !bFlag ) {
#ifdef DEBUG_EXTRA
- LOG("Reconect with new settings");
+ LOG("Settings Has been Changed!");
#endif
- if( m_bValid ) closePort();
- switch( m_sUartData.type ){
- case ARGUS_HARDWARE_UART: m_bValid = create_HW(); break;
- case ARGUS_HARDWARE_IP_UART: m_bValid = create_SOL(); break;
- };
- };
- // Check If Not Connected to Connect!
- if( !m_bValid ) {
+ memcpy( &m_sUartData, tDATA, sizeof(DBC_UART_DATA));
#ifdef DEBUG_EXTRA
- LOG("Try to Conncet");
+ LOG("Reconect with new settings");
#endif
- switch( m_sUartData.type ){
- case ARGUS_HARDWARE_UART: m_bValid = create_HW(); break;
- case ARGUS_HARDWARE_IP_UART: m_bValid = create_SOL(); break;
- };
- };
+ if( m_bValid ) closePort();
+ switch( m_sUartData.type ){
+ case ARGUS_HARDWARE_UART: m_bValid = create_HW(); break;
+ case ARGUS_HARDWARE_IP_UART: m_bValid = create_SOL(); break;
};
- break;
};
+ // Check If Not Connected to Connect!
+ if( !m_bValid ) {
+#ifdef DEBUG_EXTRA
+ LOG("Try to Conncet");
+#endif
+ switch( m_sUartData.type ){
+ case ARGUS_HARDWARE_UART: m_bValid = create_HW(); break;
+ case ARGUS_HARDWARE_IP_UART: m_bValid = create_SOL(); break;
+ };
+ };
+ free( tDATA );
+ } else {
+ LOG_ERROR("Error Fetch DB Data!");
};
- if( tDATA!= NULL ) free( tDATA );
return m_bValid;
};
@@ -508,6 +512,9 @@ bool argusHardwareResourceSerialProvider::create_HW(){
m_sTTY.c_cflag &= ~CSIZE;
m_sTTY.c_cflag |= CS8;
m_sTTY.c_cflag &= ~CRTSCTS; // no flow control
+ //
+ m_sTTY.c_iflag &= ~(INLCR | ICRNL); // fixing 0x0D->0x0A
+ //
m_sTTY.c_lflag = 0; // no signaling chars, no echo, no canonical processing
m_sTTY.c_oflag = 0; // no remapping, no delays
m_sTTY.c_cc[VMIN] = 0; // read doesn't block
diff --git a/lib/rgoose/rgooseKernel.cpp b/lib/rgoose/rgooseKernel.cpp
index bbff475b..68139fe8 100644
--- a/lib/rgoose/rgooseKernel.cpp
+++ b/lib/rgoose/rgooseKernel.cpp
@@ -541,7 +541,7 @@ void argusKernel::m_fThreadProc( void ){
tLazyTimer--;
} else {
tLazyTimer = ARGUS_KERNEL_LAZY_SECONDS;
- m_pDBC->lazyEventArchiver( ARGUS_KERNEL_LAZY_SECONDS );
+ //m_pDBC->lazyEventArchiver( ARGUS_KERNEL_LAZY_SECONDS );
};
};// ops loop
diff --git a/lib/rgoose/rgooseModule.h b/lib/rgoose/rgooseModule.h
index c2239791..656871c8 100644
--- a/lib/rgoose/rgooseModule.h
+++ b/lib/rgoose/rgooseModule.h
@@ -17,7 +17,8 @@ typedef enum E_ARGUS_MODULE_TYPE{
ARGUS_MODULE_FLYHUNTER = 6,
ARGUS_MODULE_SSDP_ANONCE = 7,
ARGUS_MODULE_ONVIF_OBSERVER = 8,
- ARGUS_MODULE_EMBED_VIDEO = 9
+ ARGUS_MODULE_EMBED_VIDEO = 9,
+ ARGUS_MODULE_MODEM_MANAGER = 10
}ARGUS_MODULE_TYPE;
class argusKernel;
diff --git a/lib/rgoose/rgooseModuleFactory.cpp b/lib/rgoose/rgooseModuleFactory.cpp
index ab61380f..a612d892 100644
--- a/lib/rgoose/rgooseModuleFactory.cpp
+++ b/lib/rgoose/rgooseModuleFactory.cpp
@@ -6,6 +6,7 @@
#include "rgooseModuleSSDP.h"
#include "rgooseModuleOnvifObserver.h"
#include "rgooseModuleEmbedVideo.h"
+#include "rgooseModuleModemManager.h"
#ifdef MEM_DEBUG
#include "../alg/generic/heapDebug.h"
@@ -61,6 +62,7 @@ void argusModuleFactory::shutdownServices( bool force ){
case ARGUS_MODULE_SSDP_ANONCE: sprintf( tB, "Stop Service of SSDP Module" ); break;
case ARGUS_MODULE_ONVIF_OBSERVER: sprintf( tB, "Stop Service of OnVif Observer Module" ); break;
case ARGUS_MODULE_EMBED_VIDEO: sprintf( tB, "Stop Service of EmbedVideo Module" ); break;
+ case ARGUS_MODULE_MODEM_MANAGER: sprintf( tB, "Stop Service of Modem Manager Module" ); break;
default: sprintf( tB, "Stop Service of UNKNOWN[%d] Module", (*index)->getType() ); break;
};
LOG( tB );
@@ -159,6 +161,12 @@ argusKernelModule *argusModuleFactory::createModule( int id ){
#endif
tVal = new argusModuleEmbedVideo( tData->module_id );
break;
+ case ARGUS_MODULE_MODEM_MANAGER:
+#ifdef DEBUG
+ LOG("Creating Modem Manager Module");
+#endif
+ tVal = new argusModuleModemManager( tData->module_id );
+ break;
};
free(tData);
} else {
@@ -186,6 +194,7 @@ void argusModuleFactory::deleteModule( argusKernelModule *M ){
case ARGUS_MODULE_SSDP_ANONCE: delete( (argusModuleSSDPAnnouncer*) M ); break;
case ARGUS_MODULE_ONVIF_OBSERVER: delete( (argusModuleOnvifObserver*) M ); break;
case ARGUS_MODULE_EMBED_VIDEO: delete( (argusModuleEmbedVideo*) M ); break;
+ case ARGUS_MODULE_MODEM_MANAGER: delete( (argusModuleModemManager*) M ); break;
};
};
};
diff --git a/lib/rgoose/rgooseModuleModemManager.cpp b/lib/rgoose/rgooseModuleModemManager.cpp
new file mode 100644
index 00000000..a73cc60c
--- /dev/null
+++ b/lib/rgoose/rgooseModuleModemManager.cpp
@@ -0,0 +1,170 @@
+#include "rgooseModuleModemManager.h"
+
+#define LOG( X ) argusKernelModule::m_pLog->Log( "MOD_MODEM", this, X )
+#ifdef DEBUG
+ #define LOG_ERROR( X ) {\
+ char _tBfrErrMSG2w34[256];\
+ sprintf( _tBfrErrMSG2w34, "In file %s[%d] in func:%s %s",__FILE__, __LINE__, __func__, X );\
+ argusKernelModule::m_pLog->Log( "MOD_MODEM", this, _LOG_ERROR, _tBfrErrMSG2w34 );\
+ }
+#else
+ #define LOG_ERROR( X ) argusKernelModule::m_pLog->Log( "MOD_MODEM", this, _LOG_ERROR, X );
+#endif
+
+
+argusModuleModemManager::argusModuleModemManager( uint32_t moduleID ): argusKernelModule( moduleID, ARGUS_MODULE_MODEM_MANAGER ), basicThread(){
+ LOG("Creating!");
+ if( checkCmdExists("mmcli") > 0 ){
+ //Modem Manager Exists
+ LOG("Manager OK!");
+ };
+};
+
+argusModuleModemManager::~argusModuleModemManager(){
+
+};
+
+bool argusModuleModemManager::reloadSettings(){
+ return true;
+};
+
+bool argusModuleModemManager::startService(){
+ return true;
+};
+
+bool argusModuleModemManager::stopService( bool force ){
+ return true;
+};
+
+void argusModuleModemManager::m_fThreadProc( void ){
+
+};
+
+void argusModuleModemManager::dispatchEvent(EVENT_CONTAINER *Evt){
+};
+
+bool argusModuleModemManager::validate(){
+ return true;
+};
+
+
+void parseModemsInSystem(){
+ "mmcli --list-modems";
+
+};
+
+typedef enum E_CFG_TAG_ID{
+ CFG_GENERAL = 0,
+ CFG_HARDWARE = 1,
+ CFG_SYSTEM,
+ CFG_STATUS,
+ CFG_MODES,
+ CFG_BANDS,
+ CFG_IP,
+ CFG_EPS,
+ CFG_3GPP,
+ CFG_SIM,
+ CFG_BEARER,
+ CFG_COUNT
+}CFG_TAG_ID;
+
+const CSTR cfg_tags[]={
+ "General",
+ "Hardware",
+ "System",
+ "Status",
+ "Modes",
+ "Bands",
+ "IP",
+ "3GPP EPS",
+ "3GPP",
+ "SIM",
+ "Bearer"
+};
+
+DBC_MODEM_DATA *getModemInfo( uint32_t modem_id ){
+ char tB[1024];
+ char expBuf[1024];
+ FILE * fd = NULL;
+ CFG_TAG_ID cMode = CFG_GENERIC;
+
+ DBC_MODEM_DATA *retVal = (DBC_MODEM_DATA *)malloc(sizeof(DBC_MODEM_DATA));
+ if ( retVal != NULL ) {
+ memset( retVal, 0 , sizeof(DBC_MODEM_DATA));
+ sprintf( tB, "mmcli --modem=%d", modem_id );
+ fd = popen( tB, "r");
+ if (fd!= NULL ) {
+ retVal->modem_id = modem_id;
+ while ( !feof( fd )) {
+ fgets( (CSTR)tB, 1024, fd );
+ trim( tB );
+ if( strstr(tB, "error:" ) != NULL){
+ free( retVal );
+ retVal = NULL;
+ break;
+ };
+ for( CFG_TAG_ID ii = CFG_GENERIC; ii < CFG_COUNT; ii++ ){
+ if( strstr( tB, cfg_tags[ii] ) != NULL ){
+ cMode = ii;
+ break;
+ };
+ };
+ strncpy( expBuf, tB, 1024 );
+ CArray *CA = explode( ':', expBuf );
+ if( CA ){
+ if( CA->size() ){
+ switch( cMode ){
+ case CFG_GENERAL:{
+ if ( strstr( CA->at(0), "device id") != NULL ) {
+ trim(CA->at(1));
+ strncpy( retVal->dbus_dev_id, CA->at(1), 64 );
+ retVal->dbus_dev_id[64] = (char)0;
+ };
+ break;
+ };
+ case CFG_HARDWARE:{
+ break;
+ };
+ case CFG_SYSTEM:{
+ break;
+ };
+ case CFG_STATUS:{
+ break;
+ };
+ case CFG_MODES:{
+ if ( strstr( tB, "current:") != NULL ) {
+
+ };
+ break;
+ };
+ case CFG_IP:{
+ break;
+ };
+ case CFG_EPS:{
+ break;
+ };
+ case CFG_3GPP:{
+ break;
+ };
+ case CFG_SIM:{
+ break;
+ };
+ case CFG_BEARER:{
+ break;
+ };
+ };
+ };
+ delete( CA );
+ };
+ };
+ fclose(fd);
+ };
+ };
+ return retVal;
+};
+
+#undef LOG
+#undef LOG_ERROR
+
+
+
diff --git a/lib/rgoose/rgooseModuleModemManager.h b/lib/rgoose/rgooseModuleModemManager.h
new file mode 100644
index 00000000..be0a3c2d
--- /dev/null
+++ b/lib/rgoose/rgooseModuleModemManager.h
@@ -0,0 +1,22 @@
+#ifndef __ARGUS_MODULE_MODEM_MANAGER_HEADER__
+#define __ARGUS_MODULE_MODEM_MANAGER_HEADER__
+
+#include "rgooseModule.h"
+#include "../components/base/basicThread.h"
+
+class argusModuleModemManager: public argusKernelModule, public basicThread {
+ protected:
+ /* From Basic Thread */
+ virtual void m_fThreadProc( void );
+ public:
+ explicit argusModuleModemManager( uint32_t moduleID );
+ ~argusModuleModemManager();
+ /* From Kernel Module */
+ virtual bool reloadSettings();
+ virtual bool startService();
+ virtual bool stopService( bool force = false );
+ virtual void dispatchEvent(EVENT_CONTAINER *Evt);
+ virtual bool validate();
+};
+
+#endif
diff --git a/lib/rgoose/rgooseModuleOnvifObserver.cpp b/lib/rgoose/rgooseModuleOnvifObserver.cpp
index beb71fe7..dc6f728d 100644
--- a/lib/rgoose/rgooseModuleOnvifObserver.cpp
+++ b/lib/rgoose/rgooseModuleOnvifObserver.cpp
@@ -139,7 +139,7 @@ void argusModuleOnvifObserver::m_fThreadProc(){
if( socketFD > -1 ){
if( bCounterTO-- ){
memset( rBuffer, 0, MAX_BUFF_SIZE );
-#ifdef DEBUG
+#ifdef DEBUG_EXTRA
struct sockaddr src_addr;
socklen_t addrlen = sizeof( src_addr );
RetVal = recvfrom( socketFD, rBuffer, MAX_BUFF_SIZE, 0, &src_addr, &addrlen );
@@ -185,17 +185,13 @@ void argusModuleOnvifObserver::m_fThreadProc(){
m_bProbeIsActive = false;
//Sleep 5 minutes if done all scans
if ( m_bCurrentNIF == 0 ){
- LOG("Going to sleep!");
for( int i=30000; i, m_bThreadStatus < TH_ENDED; i-- ) SLEEP( DEFAULT_THREAD_SLEEP_TIME );
- LOG("Waked Up!");
};
} else {
// start new probe;
- LOG("Before Mutex");
m_mNIFMUTEX.lock();
- LOG("After Mutex");
if ( m_vNIFIPS.size() ) {
-#ifdef DEBUG
+#ifdef DEBUG_EXTRA
sprintf( tB, "Starting probe on %s address", m_vNIFIPS.at(m_bCurrentNIF) );
LOG( tB );
#endif
@@ -206,13 +202,13 @@ void argusModuleOnvifObserver::m_fThreadProc(){
r_address.sin_port = htons(HTTPMU_HOST_PORT);
r_address.sin_addr.s_addr = inet_addr(m_vNIFIPS.at(m_bCurrentNIF));
bOptVal = true;
-#ifdef DEBUG
+#ifdef DEBUG_EXTRA
LOG("Sending Probe Request");
#endif
RetVal = setsockopt( socketFD, SOL_SOCKET, SO_BROADCAST, (char*)&bOptVal, bOptLen );
RetVal = sendto( socketFD, send_buff, strlen(send_buff), 0, (struct sockaddr*)&r_address, sizeof(struct sockaddr_in));
if ( RetVal > -1 ) {
-#ifdef DEBUG
+#ifdef DEBUG_EXTRA
sprintf( tB, "Sent %d Bytes of %d", RetVal, strlen(send_buff) );
LOG( tB );
#endif
@@ -226,8 +222,10 @@ void argusModuleOnvifObserver::m_fThreadProc(){
bCounterTO = 100;
m_bProbeIsActive = true;
} else {
+#ifdef DEBUG
// Failure to send probe package
- LOG("Error in sending Probe Request");
+ LOG_ERROR("Error in sending Probe Request");
+#endif
#ifdef __linux__
close(socketFD);
#else
@@ -250,7 +248,9 @@ void argusModuleOnvifObserver::m_fThreadProc(){
void argusModuleOnvifObserver::dispatchEvent(EVENT_CONTAINER *Evt){
if(!m_bEnabled) {
+#ifdef DEBUG
LOG("Module Disabled!");
+#endif
return;
}
if( Evt == NULL ) return;
diff --git a/lib/rgoose/rgooseNode.cpp b/lib/rgoose/rgooseNode.cpp
index 4e493e9e..a39841e5 100644
--- a/lib/rgoose/rgooseNode.cpp
+++ b/lib/rgoose/rgooseNode.cpp
@@ -17,6 +17,7 @@ argusNetNode::argusNetNode( uint32_t id ):basicObject(){
m_pLog = basicLogCollection::getInstance();
m_pPosition = NULL;
m_pTargetFilter = NULL;
+ m_mCommandProtector.unlock();
if( m_pDBC != NULL ) {
DBC_NODE_DATA *tData = m_pDBC->getNodeData( id );
if( tData != NULL ) {
@@ -37,6 +38,10 @@ argusNetNode::argusNetNode( uint32_t id ):basicObject(){
argusNetNode::argusNetNode( DBC_NODE_DATA *Data ):basicObject(){
m_pDBC = argusDBC::getInstance();
+ m_pLog = basicLogCollection::getInstance();
+ m_pPosition = NULL;
+ m_pTargetFilter = NULL;
+ m_mCommandProtector.unlock();
if( Data ) {
memcpy( &m_sNodeData , Data, sizeof(DBC_NODE_DATA));
if( m_pDBC ) {
@@ -49,14 +54,13 @@ argusNetNode::argusNetNode( DBC_NODE_DATA *Data ):basicObject(){
};
argusNetNode::~argusNetNode(){
- //if( m_pPosition != NULL ) delete(m_pPosition);
m_mCommandProtector.lock();
if( m_qCommands.size() ) {
NODE_COMMAND *tVal = NULL;
while( tVal = m_qCommands.front() ){
m_qCommands.pop();
- if( tVal->data ) {
- free( tVal->data );
+ if( tVal->parameter ) {
+ free( tVal->parameter );
};
free( tVal );
};
diff --git a/lib/rgoose/rgooseNode.h b/lib/rgoose/rgooseNode.h
index 9bed0fe4..74303cf3 100644
--- a/lib/rgoose/rgooseNode.h
+++ b/lib/rgoose/rgooseNode.h
@@ -8,12 +8,16 @@
#include
-#define NODE_CMD_RESET 230
+#define NODE_CMD_RESET_STUDY 230
+#define NODE_CMD_FULL_RESET 235
+//#define NODE_CMD_FULL_RESET 235
+#define NODE_CMD_UPLOAD_FILE 240
+#define NODE_CMD_GET_DEVICE_DRAW 100
typedef struct S_NODE_COMMAND{
- uint8_t cmd;
- void * data;
+ uint8_t cmd;
+ void * parameter;
}NODE_COMMAND;
typedef std::queue NODE_CMD_Q;
@@ -25,7 +29,6 @@ class argusNetNode: public basicObject{
basicMutex m_mCommandProtector;
protected:
argusDBC * m_pDBC;
- //uint32_t m_nDBID;
DBC_NODE_DATA m_sNodeData;
basicPosition * m_pPosition;
ARGUS_TARGET_FILTER * m_pTargetFilter;
diff --git a/lib/rgoose/rgooseNode2D.cpp b/lib/rgoose/rgooseNode2D.cpp
index 4a8fedcc..c1c8a410 100644
--- a/lib/rgoose/rgooseNode2D.cpp
+++ b/lib/rgoose/rgooseNode2D.cpp
@@ -14,7 +14,96 @@
#define LOG_ERROR( X ) m_pLog->Log( "2DNODE", this, _LOG_ERROR, X );
#endif
+/*
+ USER.INI
+
+AUTORESET_ENABLE=0
+AUTORESET_INTERLEAVE=2000
+AUTORESET_TIMEOUT=-5536
+BOARD_TEMPERATURE=20
+BOARD_ZEROSHIFT=0
+BOARD_ENCODERSTEPS=6
+BOARD_GEARRATIO=61
+SWITCHER_TABLE=27,55,82
+SWITCHER_REPLY_TIMEOUT=100
+SWITCHER_COMMAND_TIMEOUT=500
+SWITCHER_AUTO_MODE=0
+SWITCHER_AUTO_ENTER_TIMEOUT=60
+SWITCHER_AUTO_SWITCH_TIMEOUT=3
+
+
+
+*/
+const CSTR settings_user_ini_fields[ 13 ] = {
+ "AUTORESET_ENABLE",
+ "AUTORESET_INTERLEAVE",
+ "AUTORESET_TIMEOUT",
+ "BOARD_TEMPERATURE",
+ "BOARD_ZEROSHIFT",
+ "BOARD_ENCODERSTEPS",
+ "BOARD_GEARRATIO",
+ "SWITCHER_TABLE",
+ "SWITCHER_REPLY_TIMEOUT",
+ "SWITCHER_COMMAND_TIMEOUT",
+ "SWITCHER_AUTO_MODE",
+ "SWITCHER_AUTO_ENTER_TIMEOUT",
+ "SWITCHER_AUTO_SWITCH_TIMEOUT"
+};
+
+/*
+LPCTSTR m_pSetting[] =
+{
+ { "SN" },
+ { "ADDRESS" },
+ { "CAMERA_TYPE" },
+ { "CAMERA_SHIFT" },
+ { "CAMERA_AUTO" },
+ { "CAMERA_DELAY" },
+ { "RELAY_NC" },
+ { "RELAY_AUTO" },
+ { "RELAY_DELAY" },
+ { "VOLTAGE_CONTROL" },
+ { "MASTER_DISABLED" },
+ { "SLAVE_DISABLED" },
+
+ { "AUTORESET_ENABLE" },
+ { "AUTORESET_INTERLEAVE" },
+ { "AUTORESET_TIMEOUT" },
+
+ { "BOARD_TEMPERATURE" },
+ { "BOARD_ZEROSHIFT" },
+ { "BOARD_ENCODERSTEPS" },
+ { "BOARD_GEARRATIO" },
+ { "BOARD_MAXRANGE" },
+ { "BOARD_SPEED" },
+ { "RUN_DIR" },
+
+ { "SWITCHER_TABLE" },
+ { "SWITCHER_REPLY_TIMEOUT" },
+ { "SWITCHER_COMMAND_TIMEOUT" },
+ { "SWITCHER_AUTO_MODE" },
+ { "SWITCHER_AUTO_ENTER_TIMEOUT" },
+ { "SWITCHER_AUTO_SWITCH_TIMEOUT" },
+ { "NO_BLACK_TARGETS" },
+ { "JUST_MOVING_TARGETS" },
+ { "JUST_MOVING_RADIAL" },
+ { "JUST_MOVING_DISTANCE" },
+
+ { "BLIND_ZONE_START_ANGLE" },
+ { "BLIND_ZONE_END_ANGLE" },
+ { "BLIND_ZONE_START_RANGE" },
+ { "BLIND_ZONE_END_RANGE" },
+ { "BLIND_ZONE_WIDTH" },
+ { "BLIND_ZONE_DEPTH" },
+ { "BLIND_ZONE_ANGLE" },
+ { "BLIND_ZONE_RANGE" }
+#ifdef STORE_FIRST_SAF
+ ,{ "FREEZ_FIRST_TH" }
+ ,( "SAVE_FIRST_TH" )
+#endif
+};
+*/
ARGUS_2DSensor::ARGUS_2DSensor( uint32_t id ):argusNetNode( id ), basicThread(), protocolLGS_2D(){
m_bWM = ANODE_WM_2D_BEFORE_START;
m_pLog = basicLogCollection::getInstance();
@@ -92,7 +181,10 @@ bool ARGUS_2DSensor::startService() {
LOG_ERROR("Position <<< Create >>> Failure!");
return false;
};
- m_pPosition->setPositionDeg( m_sLRF_DATA.lat, m_sLRF_DATA.lon, m_sLRF_DATA.alt, m_sLRF_DATA.roll, m_sLRF_DATA.pitch, m_sLRF_DATA.yaw, 0.f );
+ //m_pPosition->setPositionDeg( m_sLRF_DATA.lat, m_sLRF_DATA.lon, m_sLRF_DATA.alt, m_sLRF_DATA.roll, m_sLRF_DATA.pitch, m_sLRF_DATA.yaw, 0.f );
+ m_pPosition->setPositionXYZ( m_sLRF_DATA.x , m_sLRF_DATA.y, m_sLRF_DATA.z );
+ m_pPosition->setOrientationDeg( m_sLRF_DATA.x_rot , m_sLRF_DATA.y_rot, m_sLRF_DATA.z_rot );
+
if( m_sLRF_DATA.filter_id > 0 ) {
LOG("DEFINED FILTER");
argusKernel *AK = argusKernel::getInstance();
@@ -113,36 +205,60 @@ bool ARGUS_2DSensor::stopService() {
};
bool ARGUS_2DSensor::validate(){
- m_mWMProtector.lock();
- switch( m_bWM ){
- case ANODE_WM_2D_PING:{
- // In Idle Mode
- DBC_PUSHED_CMD * PUSHED = m_pDBC->getNodePushedCMD( m_sNodeData.node_id );
- if( PUSHED ) {
- switch( PUSHED->CMD ) {
- case ARGUS_LRF_PCMD_FULL_RESET:{
+ if( m_pDBC == NULL ) return false;
+ DBC_PUSHED_CMD *tCMD = m_pDBC->getNodePushedCMD(m_sNodeData.node_id);
+ if ( tCMD!= NULL ) {
+ switch( tCMD->CMD ){
+ case ARGUS_LRF_PCMD_FULL_RESET:{
#ifdef DEBUG
- LOG("Full Reset Push CMD!");
+ LOG("Full Reset Push CMD!");
#endif
- m_bWM = ANODE_WM_2D_ISSUE_FULL_RESET;
- break;
- };
- case ARGUS_LRF_PCMD_DRAW:{
+ NODE_COMMAND *tNCMD = (NODE_COMMAND *) malloc( sizeof(NODE_COMMAND));
+ if (tNCMD) {
+ tNCMD->cmd = NODE_CMD_FULL_RESET;
+ tNCMD->parameter = NULL;
+ LOG("B E");
+ enqueueCommand( tNCMD );
+ LOG("A E");
+ };
+ break;
+ };
+ case ARGUS_LRF_PCMD_DRAW:{
#ifdef DEBUG
- LOG("Get Draw Push CMD!");
+ LOG("Get Draw Push CMD!");
#endif
- m_bWM = ANODE_WM_2D_GET_FAST_DRAW;
- break;
- };
- case ARGUS_LRF_PCMD_UPDATE_ALL:{
- break;
+ NODE_COMMAND *tNCMD = (NODE_COMMAND *) malloc( sizeof(NODE_COMMAND));
+ if (tNCMD) {
+ tNCMD->cmd = NODE_CMD_GET_DEVICE_DRAW;
+ tNCMD->parameter = NULL;
+ enqueueCommand( tNCMD );
+ }
+ break;
+ };
+ case ARGUS_LRF_PCMD_UPLOAD_FILE:{
+#ifdef DEBUG
+ LOG("Upload File CMD!");
+#endif
+ uint16_t sz = strlen(tCMD->PARAM);
+ if( sz ){
+ NODE_COMMAND *tNCMD = (NODE_COMMAND *)malloc(sizeof(NODE_COMMAND));
+ if( tNCMD ){
+ tNCMD->cmd = NODE_CMD_UPLOAD_FILE;
+ tNCMD->parameter = malloc( sz+1 );
+ if ( tNCMD->parameter != NULL ) {
+ memcpy(tNCMD->parameter, tCMD->PARAM, sz);
+ ((uint8_t *)tNCMD->parameter)[sz] = 0;
+ enqueueCommand( tNCMD );
+ } else {
+ free( tNCMD );
+ };
};
};
- free( PUSHED );
+ break;
};
};
+ free(tCMD);
};
- m_mWMProtector.unlock();
return true;
};
@@ -181,7 +297,9 @@ void ARGUS_2DSensor::m_fThreadProc( void ){
}
#ifdef DEBUG
else {
- LOG("HWM Has No UART PORT!");
+ char tB[256];
+ sprintf( tB, "HWM Has No UART PORT[%d]!", m_sLRF_DATA.uart_id );
+ LOG( tB );
}
#endif
;
@@ -201,27 +319,30 @@ void ARGUS_2DSensor::m_fThreadProc( void ){
case ANODE_WM_2D_CONNECT:{
m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
if( !getMode() ) {
- LOG_ERROR("Fall Back to Disconnected!");
+ m_pDBC->setNodeOffline( m_sNodeData.node_id );
setWM( ANODE_WM_2D_CREATE_PORT );
+ LOG_ERROR("Fall Back to Disconnected!");
} else {
- setWM( ANODE_WM_2D_WAIT_CONNECT );
// Cleanup Current data;
+ setWM( ANODE_WM_2D_WAIT_CONNECT );
cleanupDeviceStructures();
};
break;
};
case ANODE_WM_2D_WAIT_CONNECT:{
if(( m_bTimeOutCounter-- )==0 ){
- LOG_ERROR("Communication TO!");
+ m_pDBC->setNodeOffline( m_sNodeData.node_id );
setWM( ANODE_WM_2D_CONNECT );
+ LOG_ERROR("Communication TO!");
};
break;
};
case ANODE_WM_2D_SET_INIT_MODE:{
m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
if( !setMode(MODE_DETECTOR) ) {
- LOG_ERROR("Fall Back to Disconnected!");
+ m_pDBC->setNodeOffline( m_sNodeData.node_id );
setWM( ANODE_WM_2D_CREATE_PORT );
+ LOG_ERROR("Fall Back to Disconnected!");
} else {
setWM( ANODE_WM_2D_WAIT_INIT_MODE );
};
@@ -322,6 +443,7 @@ void ARGUS_2DSensor::m_fThreadProc( void ){
LOG_ERROR("Fall Back to Disconnected!");
setWM( ANODE_WM_2D_CREATE_PORT );
} else {
+ LOG("Set DWM as Border!");
setWM( ANODE_WM_2D_WAIT_BORDER_MODE );
};
break;
@@ -334,26 +456,31 @@ void ARGUS_2DSensor::m_fThreadProc( void ){
break;
};
case ANODE_WM_2D_GET_FAST_DRAW:{
- m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
if( m_bDeviceWM != MODE_BORDER ) {
setWM( ANODE_WM_2D_SET_BORDER_MODE );
} else {
+ m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
if( !getFastDraw( m_nCurrentAngle ) ) {
LOG_ERROR("Fall Back to Disconnected!");
setWM( ANODE_WM_2D_CREATE_PORT );
- } else setWM( ANODE_WM_2D_WAIT_FAST_DRAW );
+ } else {
+ m_nSleepTime = LGS_ALERT_SLEEP_TIME;
+ setWM( ANODE_WM_2D_WAIT_FAST_DRAW );
+ };
}
break;
};
case ANODE_WM_2D_WAIT_FAST_DRAW:{
if((m_bTimeOutCounter--)==0){
- LOG_ERROR("Communication TO!");
- setWM( ANODE_WM_2D_GET_FAST_DRAW );
+ LOG_ERROR("Waited Angle Draw Communication TO!");
+ m_nCurrentAngle = 0;
+ setWM( ANODE_WM_2D_SET_DETECTION_MODE );
};
break;
};
case ANODE_WM_2D_SET_DETECTION_MODE:{
m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
+ m_nSleepTime = LGS_DEFAULT_SLEEP_TIME;
if( !setMode(MODE_DETECTOR)) {
LOG_ERROR("Fall Back to Disconnected!");
setWM( ANODE_WM_2D_CREATE_PORT );
@@ -407,14 +534,23 @@ void ARGUS_2DSensor::m_fThreadProc( void ){
// Idle Work
case ANODE_WM_2D_PING:{
m_bTimeOutCounter = LGS_DEFAULT_TO_COUNTER;
- NODE_COMMAND * tCMD = NULL;
- if( tCMD = fetchCommand() ) { // Run Queued Commands;
+ if( NODE_COMMAND * tCMD = fetchCommand() ) {
switch( tCMD->cmd ) {
- case NODE_CMD_RESET:{
+ case NODE_CMD_FULL_RESET:{
+ setWM( ANODE_WM_2D_ISSUE_FULL_RESET );
+ break;
+ };
+ case NODE_CMD_UPLOAD_FILE:{
+ m_nUploadID = atoi( (CSTR) tCMD->parameter );
+ //m_sCurrentFile, m_pDBC->get
+ break;
+ };
+ case NODE_CMD_GET_DEVICE_DRAW:{
+ setWM( ANODE_WM_2D_SET_BORDER_MODE );
break;
};
};
- if( tCMD->data ) free( tCMD->data );
+ if( tCMD->parameter ) free( tCMD->parameter );
free( tCMD );
} else {
if( !getState2() ) {
@@ -430,7 +566,7 @@ void ARGUS_2DSensor::m_fThreadProc( void ){
//Wait ACK
if((m_bTimeOutCounter--)==0){
LOG_ERROR("Communication TO!");
- setWM( ANODE_WM_2D_GET_FAST_DRAW );
+ setWM( ANODE_WM_2D_CREATE_PORT );
};
break;
};
@@ -493,34 +629,40 @@ bool ARGUS_2DSensor::packetHandler( protocolPackage *Package ){
break;
};
case CMD_BORDER:{
- if( ( Package->m_pData[SUB_CMD_IDX] & 0xC0 ) == 0x00 ) {
- uint16_t AZ;
- uint16_t RANGE_A;
- uint16_t RANGE_B;
- AZ = ( ( ( Package->m_pData[SUB_CMD_IDX] & 0x10 ) >> 4 ) << 8 ) | Package->m_pData[5];
- RANGE_A = ( ( ( Package->m_pData[SUB_CMD_IDX] & 0x0C ) >> 2 ) << 8 ) | Package->m_pData[6];
- RANGE_B = ( ( Package->m_pData[SUB_CMD_IDX] & 0x03 ) << 8 ) | Package->m_pData[7];
- if( AZ < 359 ) {
- m_vDrawRanges[m_nCurrentAngle]=( RANGE_A << 16 ) | RANGE_B;
- m_nCurrentAngle = AZ+1;
- setWM( ANODE_WM_2D_GET_FAST_DRAW );
+ //LOG("Angle Draw!");
+ if ( m_bWM == ANODE_WM_2D_WAIT_FAST_DRAW ) {
+ if ((Package->m_pData[SUB_CMD_IDX] & 0xC0) == 0x00) {
+ uint16_t AZ;
+ uint16_t RANGE_A;
+ uint16_t RANGE_B;
+ AZ = ( ( ( Package->m_pData[SUB_CMD_IDX] & 0x10 ) >> 4 ) << 8 ) | Package->m_pData[5];
+ RANGE_A = ( ( ( Package->m_pData[SUB_CMD_IDX] & 0x0C ) >> 2 ) << 8 ) | Package->m_pData[6];
+ RANGE_B = ( ( Package->m_pData[SUB_CMD_IDX] & 0x03 ) << 8 ) | Package->m_pData[7];
+ if( AZ < 359 ) {
+ m_vDrawRanges[m_nCurrentAngle]=( RANGE_A << 16 ) | RANGE_B;
+ m_nCurrentAngle = AZ+1;
+ setWM( ANODE_WM_2D_GET_FAST_DRAW );
+ } else {
+ // Store Draw
+ saveRawDrawData( 360 );
+ LOG("Draw Complete!");
+ m_nCurrentAngle = 0;
+ setWM( ANODE_WM_2D_SET_DETECTION_MODE );
+ };
} else {
- // Store Draw
- saveRawDrawData( 360 );
- LOG("Draw Complete!");
- m_nCurrentAngle = 0;
- setWM( ANODE_WM_2D_SET_DETECTION_MODE );
+ if( Package->m_pData[SUB_CMD_IDX] == 0x80 ) {
+ // Data Not Ready
+ m_nCurrentAngle = 0;
+ //check WM
+ setWM( ANODE_WM_2D_GET_FAST_DRAW );
+ } else {
+ // Error Requested Angle
+ setWM( ANODE_WM_2D_PING );
+ };
};
} else {
- if( Package->m_pData[SUB_CMD_IDX] == 0x80 ) {
- // Data Not Ready
- m_nCurrentAngle = 0;
- //check WM
- setWM( ANODE_WM_2D_GET_FAST_DRAW );
- } else {
- // Error Requested Angle
- setWM( ANODE_WM_2D_PING );
- };
+ setWM( ANODE_WM_2D_SET_DETECTION_MODE );
+ m_nCurrentAngle = 0;
};
break;
};
@@ -555,7 +697,7 @@ bool ARGUS_2DSensor::packetHandler( protocolPackage *Package ){
case ANODE_WM_2D_WAIT_BORDER_MODE:{
if( m_bDeviceWM == MODE_BORDER ) {
setWM( ANODE_WM_2D_GET_FAST_DRAW );
- m_nSleepTime = LGS_ALERT_SLEEP_TIME;
+ //m_nSleepTime = LGS_ALERT_SLEEP_TIME;
m_nCurrentAngle = 0;
} else {
m_bWM = ANODE_WM_2D_SET_BORDER_MODE;
@@ -831,13 +973,17 @@ bool ARGUS_2DSensor::packetHandler( protocolPackage *Package ){
m_bInitialFlips--;
} else {
LOG("INITIAL FLIPS ARE DONE!");
- if( m_sLRF_DATA.auto_draw > 0 ) {
- LOG("Start AutoDraw!");
- m_bInitialFlips = m_sLRF_DATA.auto_draw;
- setWM( ANODE_WM_2D_SET_BORDER_MODE );
- m_nCurrentAngle = 0;
+ if ( m_bWM == ANODE_WM_2D_PING ) {
+ if (m_sLRF_DATA.auto_draw > 0) {
+ LOG("Start AutoDraw!");
+ m_bInitialFlips = m_sLRF_DATA.auto_draw;
+ setWM( ANODE_WM_2D_SET_BORDER_MODE );
+ m_nCurrentAngle = 0;
+ } else {
+ LOG("No AutoDraw Defined!");
+ };
} else {
- LOG("No AutoDraw Defined!");
+ LOG_ERROR("Wrong WM Mode! (possible error in init process)");
};
};
cIDX += 5;
@@ -991,6 +1137,28 @@ void ARGUS_2DSensor::saveRawDrawData( uint16_t alngles ){
};
};
+CSTR ARGUS_2DSensor::generateSettingFile(){
+ FILE * fd = NULL;
+ CSTR RetVal = getUniqID_MD5();
+ if ( RetVal ) {
+ char tB[256];
+ sprintf( tB,"data/uploads/%s", RetVal );
+ fd = fopen( tB, "wb+" );
+ if ( fd ) {
+ for ( int idx=0; idx < 13; idx++ ) {
+ switch( idx ){
+ case 0: fprintf(fd, "%s=%d\r\n", settings_user_ini_fields[idx]); break;
+ };
+ };
+ fclose( fd );
+ } else {
+ free( RetVal );
+ RetVal = NULL;
+ };
+ };
+ return RetVal;
+};
+
#undef SIZE_IDX
#undef DEV_ID_IDX
#undef CMD_IDX
diff --git a/lib/rgoose/rgooseNode2D.h b/lib/rgoose/rgooseNode2D.h
index 15314211..2f7c367d 100644
--- a/lib/rgoose/rgooseNode2D.h
+++ b/lib/rgoose/rgooseNode2D.h
@@ -16,7 +16,7 @@
#define LGS_DEFAULT_SLEEP_TIME 333
#define LGS_ALERT_SLEEP_TIME 10
-#define LGS_DEFAULT_TO_COUNTER 3
+#define LGS_DEFAULT_TO_COUNTER 10
#define LGS_INITIAL_FLIPS 4
#define ANODE_WM_2D_BEFORE_START 0
@@ -83,6 +83,7 @@
#define ARGUS_LRF_PCMD_SET_DP_1 101
#define ARGUS_LRF_PCMD_SET_DP_2 102
#define ARGUS_LRF_PCMD_SET_DP_3 103
+#define ARGUS_LRF_PCMD_UPLOAD_FILE 120
#define ARGUS_LRF_PCMD_UPDATE_ALL 255
@@ -108,6 +109,8 @@ class ARGUS_2DSensor: public argusNetNode, public basicThread, public protocolLG
bool m_bVersionStringValid;
char m_tSN[65];
char m_tSV[129];
+ char m_sCurrentFile[MAX_PATH];
+ uint32_t m_nUploadID;
uint8_t m_nActiveDetectionProfile;
TARGET_DATA * prepareTargetData( uint16_t AZ, uint16_t RANGE, uint32_t WIDTH );
@@ -115,6 +118,7 @@ class ARGUS_2DSensor: public argusNetNode, public basicThread, public protocolLG
uint8_t getWM( void );
void setWM( uint8_t MD );
void cleanupDeviceStructures();
+ CSTR generateSettingFile();
protected:
virtual bool packetHandler( protocolPackage *Package );
virtual void m_fThreadProc( void );
diff --git a/lib/rgoose/rgooseNode3D.cpp b/lib/rgoose/rgooseNode3D.cpp
index 1cd03ac2..bad5e728 100644
--- a/lib/rgoose/rgooseNode3D.cpp
+++ b/lib/rgoose/rgooseNode3D.cpp
@@ -48,7 +48,9 @@ bool argus3DLIDAR::startService(){
m_pMasterNode->setPort( m_sDATA.master_port );
LOG("Host/Port Set Done");
basicPosition *pos = m_pMasterNode->getPosition();
- pos->setPositionDeg( m_sDATA.lat, m_sDATA.lon, m_sDATA.alt, m_sDATA.roll, m_sDATA.pitch, m_sDATA.yaw, 0.f );
+ //pos->setPositionDeg( m_sDATA.lat, m_sDATA.lon, m_sDATA.alt, m_sDATA.roll, m_sDATA.pitch, m_sDATA.yaw, 0.f );
+ pos->setPositionXYZ( m_sDATA.x , m_sDATA.y, m_sDATA.z );
+ pos->setOrientationDeg( m_sDATA.x_rot , m_sDATA.y_rot, m_sDATA.z_rot );
if(!m_pMasterNode->create() ){
LOG_ERROR("CANNOT CREATE MASTER DEVICE!");
delete( m_pMasterNode );
diff --git a/lib/rgoose/rgooseNodeFactory.cpp b/lib/rgoose/rgooseNodeFactory.cpp
index 93c70102..fe7b571c 100644
--- a/lib/rgoose/rgooseNodeFactory.cpp
+++ b/lib/rgoose/rgooseNodeFactory.cpp
@@ -482,7 +482,9 @@ void argusNodeFactory::m_fThreadProc( void ){
tList = m_pDBC->listNewNodes( m_nSiteID, NULL );
};
if( tList != NULL ) {
+#ifdef DEBUG
LOG("New Nodes Added!");
+#endif
for( DBC_INT_LIST::iterator idx = tList->begin(); idx < tList->end(); idx++ ) createNode( *idx );
tList->clear();
delete( tList );
@@ -509,28 +511,36 @@ void argusNodeFactory::m_fThreadProc( void ){
for( DBC_INT_LIST::iterator idz = tList->begin(); idz < tList->end(); idz++ ) if( (*idz) == (*idx)->getDbId() ) tRemoved = false;
// If Not - check validation
if( !tRemoved ){
+#ifdef DEBUG_EXTRA
LOG("Node Among Active Nodes.... make Validation");
+#endif
tRemoved = !(*idx)->validate();
};
// If Node is Invalid - Removing
if( tRemoved ) {
+#ifdef DEBUG
LOG("Node not passed Validation!");
+#endif
deleteNode((*idx));
};
};
tList->clear();
delete( tList );
} else {
+#ifdef DEUBG
LOG("All Modules Must be Deleted!");
+#endif
for( vectorNetNodes::iterator idx = m_vNetNodes.begin(); idx < m_vNetNodes.end(); idx++ ) deleteNode((*idx));
m_vNetNodes.clear();
m_mNetNodesIDS.clear();
};
}
#ifdef DEBUG
- //else {
- // LOG("No Nodes to Validate");
- //}
+ #ifdef DEBUG_EXTRA
+ else {
+ LOG("No Nodes to Validate");
+ }
+ #endif
;
#ifdef MEM_DEBUG
memEnd = getCurrentRSS();
@@ -538,6 +548,8 @@ void argusNodeFactory::m_fThreadProc( void ){
sprintf(MEM_MSG,"MEM START: %d MEM DIF2: %d", memStart, memDiff );
LOG( MEM_MSG );
#endif
+#else
+ ;
#endif
for( int i = ( 15000 / DEFAULT_THREAD_SLEEP_TIME ); i && ( m_bThreadStatus < TH_ENDED ); i-- ) SLEEP( DEFAULT_THREAD_SLEEP_TIME );
};
diff --git a/lib/rgoose/rgooseNodeStaticCamControl.cpp b/lib/rgoose/rgooseNodeStaticCamControl.cpp
index 01a74b40..17fdc44d 100644
--- a/lib/rgoose/rgooseNodeStaticCamControl.cpp
+++ b/lib/rgoose/rgooseNodeStaticCamControl.cpp
@@ -41,6 +41,8 @@ ARGUS_CAM::ARGUS_CAM( DBC_NODE_DATA *Data ): basicEventHandler(), argusNetNode(
ARGUS_CAM::ARGUS_CAM( uint32_t id ): basicEventHandler(), argusNetNode( id ), ARGUS_Camera(){
m_pLog = basicLogCollection::getInstance();
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 ));
};
diff --git a/lib/rgoose/rgooseTypes.h b/lib/rgoose/rgooseTypes.h
index 55465138..e923b71d 100644
--- a/lib/rgoose/rgooseTypes.h
+++ b/lib/rgoose/rgooseTypes.h
@@ -85,6 +85,7 @@ typedef enum E_ARGUS_NODE_TYPE{
ARGUS_JAMER = 40,
ARGUS_IP_VIDEO_SERVER = 50,
ARGUS_DRONE_CONTROL = 60,
+ ARGUS_CELLULAR_GATEWAY = 61,
ARGUS_NAPD_FILTER = 100,
ARGUS_METRO_FILTER = 101,
@@ -122,6 +123,13 @@ typedef enum E_ARGUS_HARDWARE_PROVIDERS{
typedef std::vector vectorCSTR;
+typedef enum E_ARGUS_RESOURCE_CLASS{
+ ARGUS_HARDWARE_UNKNOWN = 0,
+ ARGUS_HARDWARE_SERIAL = 1,
+ ARGUS_HARDWARE_GPIO = 2,
+ ARGUS_HARDWARE_NETWORK = 3,
+} ARGUS_RESOURCE_CLASS;
+
typedef enum E_ARGUS_RESOURCE_TYPE{
ARGUS_HARDWARE_UNKNOWN = 0,
ARGUS_HARDWARE_UART = 1,
@@ -139,6 +147,7 @@ typedef enum E_ARGUS_RESOURCE_TYPE{
ARGUS_HARDWARE_NIF_WIFI = 102,
ARGUS_HARDWARE_NIF_VIRTUAL = 103,
ARGUS_HARDWARE_NIF_TUNEL = 104,
+ ARGUS_HARDWARE_NIF_WAN = 105,
ARGUS_HARDWARE_MODEM = 120,
ARGUS_HARDWARE_IP_UART = 129,
@@ -151,15 +160,31 @@ typedef enum E_ARGUS_NIF_TYPE{
NIF_ETHERNET = 1,
NIF_ETHERNET_VIRTUAL = 2,
NIF_WIFI = 3,
- NIF_VPN_TUNEL = 4
+ NIF_VPN_TUNEL = 4,
+ NIF_WAN = 5
}ARGUS_NIF_TYPE;
typedef enum E_ARGUS_NIF_MODE{
- ADDRESS_DYNAMIC = 0,
- ADDRESS_STATIC = 1,
- ADDRESS_STATIC_RAP = 2
+ ADDRESS_DISABLED = 0,
+ ADDRESS_DYNAMIC = 1,
+ ADDRESS_STATIC = 2,
+ ADDRESS_STATIC_RAP = 3
}ARGUS_NIF_MODE;
+typedef enum E_ARGUS_WIFI_MODE{
+ WIFI_DISABLED = 0,
+ WIFI_ADHOC = 1,
+ WIFI_CONNECTED_TO_AP = 2,
+ WIFI_IS_AP = 3
+}ARGUS_WIFI_MODE;
+
+typedef enum E_ARGUS_WIFI_ENCRIPTION{
+ ENCRIPTION_NONE = 0,
+ ENCRIPTION_WPA_PSK = 1,
+ ENCRIPTION_WPE = 2//,
+ //ENCRIPTION_TKIP = 3
+}ARGUS_WIFI_ENCRIPTION;
+
typedef enum E_ARGUS_NETWORK_TYPE{
NETWORK_IPV4 = 0,
NETWORK_IPV6 = 1,
@@ -179,12 +204,12 @@ typedef struct S_DBC_CAM_DATA{
uint8_t protocol;
uint8_t protocol_aux;
uint32_t uart_id;
- float lat;
- float lon;
- float alt;
- float pitch;
- float roll;
- float yaw;
+ float x;
+ float y;
+ float z;
+ float x_rot;
+ float y_rot;
+ float z_rot;
uint8_t imager_type;
float min_f;
float max_f;
@@ -371,12 +396,12 @@ typedef struct S_DBC_LRF_DATA{
uint8_t data_status;
char serial[65];
char version[129];
- float lat;
- float lon;
- float alt;
- float pitch;
- float yaw;
- float roll;
+ float x;
+ float y;
+ float z;
+ float x_rot;
+ float y_rot;
+ float z_rot;
uint32_t filter_id;
uint32_t uart_id;
uint32_t device_id;
@@ -471,6 +496,35 @@ typedef struct S_DBC_APF_DATA{
float dz;
}DBC_APF_DATA;
+typedef struct S_DBC_MODEM_MANAGER_DATA{
+ uint32_t id;
+ uint32_t time_window;
+ uint32_t evt_trigers;
+}DBC_MODEM_MANAGER_DATA;
+
+typedef struct S_DBC_MODEM_DATA{
+ uint32_t id;
+ uint32_t modem_id;
+ char imei[16];
+ char dbus_dev_id[65];
+ char hw_model[65];
+ char hw_manufac[65];
+ char hw_revision[65];
+ char hw_version[33];
+ char hw_id[33];
+ uint32_t at_uart_id;
+ uint32_t at_uart_id_aux;
+ char sim_pin[7];
+ char sim_pin2[7];
+ char sim_puk[7];
+ char sim_puk2[7];
+ char status[2];
+ char power[2];
+ uint8_t signal;
+ uint32_t operator_id;
+ char registration[65];
+}DBC_MODEM_DATA;
+
typedef std::vector DBC_INT_LIST;
typedef std::vector vectorCamRecords;
typedef std::vector vectorEventRecords;