Modem
DPYMODEMTOOL                                         Linux Programmer's Manual                                         DPYMODEMTOOL

DESCRIPTION
	dpymodemtool : Tool used to read and get information from Modem. Moreover, it is used to configure several parameters of Modem module.

SYNOPSIS
	dpymodemtool [-h/ --help]
	dpymodemtool [-tv / --toolversion]
	dpymodemtool [-lm / --listmodems] 
	dpymodemtool [-ls / --listsims] <modemid> 
	dpymodemtool [-la / --listactivesims] <modemid>  
	dpymodemtool [-le / --listevents] 
	dpymodemtool [-se / --simevents ]
	dpymodemtool [-sse / --simstatusevents ]
	dpymodemtool [-s/ --status]  <modemid>
	dpymodemtool [-is/ --ifacestats]  <modemid>
	dpymodemtool [-scs/ --switchsim] <modemid>
    dpymodemtool [-gss/ --getsimslot] <modemid>
	dpymodemtool [-sp/ --statusper]
	dpymodemtool [-dataconn / --isdataconnenabled] <modemid>
	dpymodemtool [-mi / --modeminfo] <modemid>
	dpymodemtool [-si / --siminfo] <simid>
	dpymodemtool [-ss / --simstatus] <simid>
	dpymodemtool [-a/ --apn] <option>
	dpymodemtool [-w/ --warnings]
	dpymodemtool [-o / --operation]  <modemid> <option>
    dpymodemtool [-fn / --forcenetwork]  <modemid> <network>
	
	

OPTIONS
	-h / --help : Print help command information.
	-tv / --toolversion : Print tool version.
	-lm / --listmodems : Get list of Modems that have been already detected.
	-ls / --listsims <modemid> : Get list of Sims that are associated with a Modem.  
	-la / --listactivesims <modemid> : Get the list of sims being used by a specific Modem.  
	-le / --listevents : Get Modem List updates in a permanent mode.
	-se / --simevents : Get Sim List updates in a permanent mode.
	-sse / --simstatusevents : Get Sim Status updates in a permanent mode.
	-s  / --status <modemid> : Get status of a specific Modem.
	-is/ --ifacestats <modemid> : Get the interface statistics of a specific Modem.
	-scs/ --switchsim <modemid> : Switch the current active sim changing the slot in a dual sim modem.
	-gss/ --getsimslot <modemid> : Get the sim slot currently being used by the modem. 
	-sp / --statusper : Get notified of Modem status changes in a permanent mode.
    -dataconn / --isdataconnenabled <modemid> : Used to check wether a specific Modem data connection is enabled.
	-mi / --modeminfo <modemid> : Get information from a specific modem.
	-si / --siminfo <simid> : Get information from a specific sim.
	-ss / --simstatus <simid> : Get status from a specific sim.
	-a / --apn <option> : Perform APN related operations.
	Description:
		<option> : APN operation. Possible values are:           
			<--getstored> <imsi> : Get APN information from APN list given a specific <imsi>.
			<--del> <imsi> : Deletes a existing APN from the permanent APN list specifying its <imsi>.
			<--add> <imsi> <apn> <user> <password> : Adds a new APN specifying its <imsi> to the permanent APN list.
			<--modify> <imsi> <apn> <user> <password>: Substitutes a specific <imsi>'s APN by the APN that is being specified. 
			<-f/ --force> <imsi> <apn> <user> <password>: Forces a modem to use a custom APN to perform connections for all inserted SIMs.[deprecated]
			<-f/ --force> <apn> <user> <password>: Forces a modem to use a custom APN to perform connections for all inserted SIMs. 
			<-sf/ --stopforce> <imsi>: Stop making use of a custom APN, use the permanent APN list to select the APN (default) instead. [deprecated]
			<-sf/ --stopforce>: Stop making use of a custom APN, use the permanent APN list to select the APN (default) instead.
			<-gf/ --getforcedAPN>: Get forced APN information, if there is no forced APN, it returns an empty one.
			Description:
				<imsi> : IMSI value used to select one APN or another.
				<apn> : Access Point Network.
				<user> : Username.
				<password> : Password.	
	-w / --warnings : Monitor warnings from the different Modems.
	-o / --operation <modemid> <option> : Query a operation for a specific Modem
	Description:
		<option> : Operation types. Possible values are:
			<-d/ --disable> : Disables all Modem functionalities.
			<-e/ --enable>  : Enables the Modem device. (enabled by default)
			<-s/ --sleep>   : Sets Modem power sleep mode.
			<-sr/ --softrestart> : Performs a software Modem restart.
			<-hr/ --hardrestart> : Performs a hardware Modem restart.
			<-edata/ --enabledataconn> : Enables data connection functionalities (enabled by default).
			<-ddata/ --disabledataconn> : Disables data connection functionalities.
    -fn / --forcenetwork <modemid> <network> : Force the modem to set a specific network mode.
    Description:
        <network> : Network mode types. Possible values are:
           CS  : CSD and GSM.
           2G  : GPRS, EDGE.
           3G  : UMTS, HSxPA.
           4G  : LTE
           ANY : Any network can be used, this option stops forcing a specific mode.
           
            

EXAMPLES
	dpymodemtool --listmodems
	dpymodemtool --simevents
	dpymodemtool --status "1"
	dpymodemtool -ls "1"
	dpymodemtool --operation "1" --enable
	dpymodemtool --operation "1" -ddata
	dpymodemtool -mi "2"
    dpymodemtool --apn --add 123456 "my_provider" "my_user" "my_password" 
    dpymodemtool --forcenetwork "1" "3G"
    dpymodemtool -gss "1"
	
FILES
	JSON Configuration file : /mntSFS/gmvCNF/modem_conf.json
	JSON APN List: /mntSFS/gmvCNF/modem_apn.json
BUGS

SEE ALSO

AUTHORS
	Deepsy Team