RGETC :
	Get a character from the remote
	RGETC (STORE, TIMEOUT) ;
	STORE is the string where the character will be stored
	TIMEOUT is the wait time in seconds
	Returns success or failure
	If no time out is specified wait till the charcter is received
	Min No Of Args : 1
	Max No Of Args : 2
	Return Value 	: Integer (success / failure)
	Kind of args   : String, integer (optional)
	Passed by      : Reference, Reference or value
	Test           : Simply connect a terminal to the WAN Port
						  Type a charcter and wait for it
						  To ensure correctness use TRANSMIT to echo it back
--------------------------------------------------------------------------------
RGETS :
	Get the given number of characters from the remote
	RGETS (STORE, LENGTH, TIMEOUT) ;
	STORE is the string where the characters are stored
	LENGTH is the number of characters
	TIMEOUT is the wait time in seconds
	If no timeout is specified wait till the given number of characters 
	is received
	Returns the number of characters received if the timeout occurs
			  LENGTH if successful within the timeout period
			  0 if some kind of failure
	Min No Of Args : 2
	Max No Of Args : 3
	Return Value 	: Integer (number of characters received)
	Kind of args   : String, integer, integer (optional)
	Passed by      : Reference, Reference or value, Reference or value
	Test           : Simply connect a terminal to the WAN Port
						  Type few characters from the terminal and check
--------------------------------------------------------------------------------
GETDCD :
	Determines whether the CD has been asserted
	GETDCD ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: Integer (1 : CD up, 0 : CD down)
	Kind of args   : None
	Passed by      : None
	Test           : 
--------------------------------------------------------------------------------
HANGUP :
	Brings the Modem ON HOOK
	HANGUP ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: None
	Kind of args   : None
	Passed by      : None
	Test   			:
--------------------------------------------------------------------------------
BAUDRATE :
	Sets the Baud rate for the Port
	BAUDRATE (BAUD) ;
	BAUD is either a string or an integer specifying the Baud rate
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (Success = 1 / Failure = 0)
	Kind of args   : 
	Passed by      : 
	Test   			: Connect a terminal to the Port
						  Have mismatches in the baud rates between
						  the two of them. Transmit something and see the result
--------------------------------------------------------------------------------
STOPBITS :
	Sets the number of stop bits
	STOPBITS (BITS) ;
	BITS can be either 1 or 2
	If any other value is passed nothing is done and fail is indicated
	else success
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (Success = 1 / Failure = 0)
	Kind of args   : Integer
	Passed by      : Value
	Test   			: Connect a terminal to the Port
						  Have mismatches in the number of stop bits between
						  the two of them. Transmit something and see the result
--------------------------------------------------------------------------------
PARITY :
	Sets the parity
	PARITY (KIND) ;
	KIND is a string
	KIND can only be "ODD" or "EVEN" or "NONE"
	For other values Failure is returned
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (Success = 1 / Failure = 0)
	Kind of args   : String
	Passed by      : Reference
	Test   			: Connect a terminal to the Port
						  Have mismatches in the parity type between
						  the two of them. Transmit something and see the result
--------------------------------------------------------------------------------
DEC :
	Decrements the value of the integer passed
	DEC (NUM) ;
	NUM is the integer to be decremented
	The argument passed is decremented as well as it is returned
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Decremented value
	Kind of args   : Integer
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
INC :
	Increments the value of the integer passed
	INC (NUM) ;
	NUM is the integer to be incremented
	The argument passed is incremented as well as it is returned
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Incremented value
	Kind of args   : Integer
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
EXIT :
	Terminates the script
	EXIT ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: None
	Kind of args   : None
	Passed by      : None
	Test				: Include even in Sub routines and check
--------------------------------------------------------------------------------
ATOI :
	Converts the string into an Integer
	ATOI (STR) ;
	STR is a string that contains the number
	Returns the converted number
	If the string has any non decimal character return value is not known
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (converted value)
	Kind of args   : String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
ITOA :
	Converts the number given into a string based on the radix
	ITOA (NUMBER, BUFFER, RADIX) ;
	NUMBER is an integer that has to be converted
	BUFFER is a string where the number would be stored
	RADIX is an integer (Valid from 2 to 33)
	If RADIX is not specified it is assumed as 10
	If successful 1 is returned, else 0
	Min No Of Args : 2
	Max No Of Args : 3
	Return Value 	: Integer (Success/Failure)
	Kind of args   : Integer, String, Integer (optional)
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
STRLEN :
	Returns the length of the string passed
	STRLEN (BUFFER) ;
	BUFFER is the string whose length has to be evaluated
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (Length of the string)
	Kind of args   : String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
STRCAT :
	Concatenates two strings
	STRCAT (STR1, STR2) ;
	Appends STR2 to STR1
	STR1 cannot be a constant string
	Returns 1 on success or 0 on failure
	Min No Of Args : 2
	Max No Of Args : 2
	Return Value 	: Integer (Success/Failure)
	Kind of args   : String, String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
STRCMP :
	Compares two strings lexically and returns the result
	STRCMP (STR1, STR2) ;
	STR1 is a string (variable)
	STR2 is a string
	Compare STR1 and STR2
	Returns 0 if STR1 = STR2
			  +ve value if STR1 > STR2
			  -ve value if STR1 < STR2
			  lexically
	Min No Of Args : 2
	Max No Of Args : 2
	Return Value 	: Integer
	Kind of args   : String, String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
STRCPY :
	Copies the second string into the first
	STRCPY (STR1, STR2) ;
	STR1 is a variable string
	STR2 is a string
	Min No Of Args : 2
	Max No Of Args : 2
	Return Value 	: Integer (success or failure)
	Kind of args   : String, String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
STRFMT :
	Formats the arguments according to the format string and puts
	them into the buffer
	STRFMT (BUFFER, FORMAT, ARG1, ARG2, .....) ;
	BUFFER is a string (variable)
	FORMAT is a string that specifies the format
	%d : decimal ; %x : hexadecimal ; %s : string ; %c : character
	ARG1, ARG2,.... : Either strings or integers
	Min No Of Args : 2
	Max No Of Args :
	Return Value 	: Integer (success or failure)
	Kind of args   : String, String, (...Strings | Integers...)
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
TOUPPER :
	Converts the string into Upper case (Excludes constants)
	TOUPPER (BUFFER) ;
	BUFFER is the string to be converted to uppercase
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: None
	Kind of args   : String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
TOLOWER :
	Converts the string into Lower case (Excludes constants)
	TOLOWER (BUFFER) ;
	BUFFER is the string to be converted to Lowercase
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: None
	Kind of args   : String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
TRANSMIT :
	Writes the given string to the Port
	TRANSMIT (BUFFER) ;
	BUFFER is the string to be transmitted
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Success or Failure (Integer)
	Kind of args   : String
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
WAITFOR :
	Waits for the pattern to be received on the port
	within the timeout specified
	If timeout is not specified it will wait until the
	pattern expected is received
	Case sensitive search is made
	WAITFOR (PATTERN, TIMEOUT) ;
	PATTERN is a string that is looked for on the port
	TIMEOUT is an integer (wait time in seconds)
	Return value is a success or a failure
	Min No Of Args : 1
	Max No Of Args : 2
	Return Value 	: Success or Failure (Integer)
	Kind of args   : String, Integer (optional)
	Passed by      : 
	Test				:
--------------------------------------------------------------------------------
WAIT :
	The script waits for the amount of time specified
	WAIT (TIME) ;
	TIME is an integer (wait time in seconds)
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: None
	Kind of args   : Integer
	Passed by      : 
	Test				: The accuracy of the wait
--------------------------------------------------------------------------------
BREAK :
	Sends a break for the time specified
	BREAK (TIME) ;
	TIME is an integer (break time is in milliseconds)
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Success or failure (integer)
	Kind of args   : Integer
	Passed by      : 
	Test				: Resolution problem
--------------------------------------------------------------------------------
RXFLUSH :
	Flushes the Receive Buffers
	RXFLUSH ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: None
	Kind of args   : None
	Passed by      : 
	Test				: 
--------------------------------------------------------------------------------
TXFLUSH :
	Flushes the Transmit Buffers
	TXFLUSH ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: None
	Kind of args   : None
	Passed by      : 
	Test				: 
--------------------------------------------------------------------------------
THISLAYERUP :
	This command is used to inform the data link layer
	that the physical connection is up
	If the port is not owned by anyone PPP is given the control
	else if PPP owns it nothing is done. Success is returned
	If the port is used by some other application Failure is returned
	THISLAYERUP ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: None
	Kind of args   : None
	Passed by      : 
	Test				: 
--------------------------------------------------------------------------------
SETRTS :
	Can Assert or Deassert the RTS
	SETRTS (SET) ;
	SET is an integer 
	If 0, RTS is deasserted; else RTS is asserted
	Returns success or failure
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (success or failure)
	Kind of args   : Integer
	Passed by      : 
	Test				: 
--------------------------------------------------------------------------------
GETCTS :
	Determines whether the CTS has been asserted
	GETCTS ;
	Min No Of Args : 0
	Max No Of Args : 0
	Return Value 	: Integer (1 : CTS up, 0 : CTS down)
	Kind of args   : None
	Passed by      : None
	Test           : 
--------------------------------------------------------------------------------
SETDTR :
	Can Assert or Deassert the DTR
	SETDTR (SET) ;
	SET is an integer 
	If 0, DTR is deasserted; else DTR is asserted
	Returns success or failure
	Min No Of Args : 1
	Max No Of Args : 1
	Return Value 	: Integer (success or failure)
	Kind of args   : Integer
	Passed by      : 
	Test				: 
--------------------------------------------------------------------------------



