/************************************************************************************************
DESCRIPTION:
  Diaggrab_TooL for USB and PCIE of FIBOCOM wireless cellular modules.
  
USAGE:
	(1)./diaggrabpro -c [log config file] <-logdir [logdir]> <-logsize [int]> -[start/stop] <-p [DiagPort]>
	(2)./diaggrabpro -c [log config file] <-logdir [logdir]> <-logsize [int]> -[start/stop] -port [port] -addr [address] <-p [DiagPort]>
	(3)./diaggrabpro -c [log config file] <-logdir [logdir]> <-logsize [int]> -[start/stop] -port [port] -addr [127.0.0.1] -adb <-p [DiagPort]>
	(4)./diaggrabpro -c [log config file] <-logdir [logdir]> <-logsize [int]> -[start/stop] -ftpipaddr [address] -username [username] -passwd [password] <-p [DiagPort]>
	(5)./diaggrabpro -version
	    
*************************************************************************************************/

=================================================================================================

                            Version Record
  This section contains version comments describing changes made to the module.
  Notice that  changes are listed in reverse chronological order.


Version       			When         Modification 
--------------------    --------     ------------------------------------------------------------
Diaggrab_TooL_V2.0.0    06/28/21     Compatible with X12 platform module log fetching
Diaggrab_TooL_V1.0.9    12/14/20     1.Add CTRL+C to release resources before exiting the function
                                     2.Resolved a segment error increasing the -p specified diag port
Diaggrab_TooL_V1.0.8    11/12/20     Eliminate compilation warnings
Diaggrab_TooL_V1.0.7    10/31/20     Optimize the tool to capture and parse QTRACE log


=================================================================================================
