Ejemplo n.º 1
0
    def _populateCommands(self):
        AbstractModemChannel._populateCommands(self)  # default command init

        c = self._commands["init"] = []

        c.append('+EPOM=1,0')  # Ezx Power On Modem
        c.append('+EAPF=12,1,0')  # ??

        # GSM unsolicited
        c.append('+CRC=1')  # Extended ring report
        c.append('+CLIP=1')  # calling line identification presentation enable
        c.append(
            '+COLP=1')  # connected line identification presentation enable
        c.append('+CCWA=1')  # call waiting
        c.append("+CSSN=1,1"
                 )  # supplementary service notifications: send unsol. code
        c.append('+CTZU=1')  # timezone update
        c.append('+CTZR=1')  # timezone reporting
        c.append('+CREG=2'
                 )  # registration information (NOTE not all modems support =2)
        c.append("+CAOC=2")  # advice of charge: send unsol. code
        # GPRS unsolicited
        c.append("+CGEREP=2,1")
        c.append("+CGREG=2")

        self._commands["sim"] = []
Ejemplo n.º 2
0
    def _populateCommands(self):
        AbstractModemChannel._populateCommands(self)  # default command init

        c = self._commands["init"] = []
        c.append('+USBSTAT=255,1')  # charge

        self._commands["sim"] = []
Ejemplo n.º 3
0
    def _populateCommands(self):
        AbstractModemChannel._populateCommands(self)  # default command init

        self._commands["init"] = []

        # This modem needs a special SIM init sequence otherwise GSM 07.07 SMS commands won't succeed
        c = self._commands["sim"] = []
        c.append("+CRRM")
        # FIXME if this returns an error, we might have no SIM inserted
        c.append("+EPMS?")
        c.append("+EMGL=4")
Ejemplo n.º 4
0
    def _populateCommands( self ):
        AbstractModemChannel._populateCommands( self )

        c = self._commands["init"]
        # enable unsolicited codes

        c.append( "+CLIP=1" ) # calling line identification presentation enable
        c.append( "+COLP=1" ) # connected line identification presentation enable
        c.append( "+CCWA=1" ) # call waiting: send unsol. code
        c.append( "+CSSN=1,1") # supplementary service notifications: send unsol. code
        c.append( "+CRC=1" ) # cellular result codes: extended
        c.append( "+CSNS=0" ) # single numbering scheme: voice
        c.append( "+CTZU=1" ) # timezone update
        c.append( "+CTZR=1" ) # timezone reporting
        c.append( "+CREG=2" ) # registration information (TODO not all modems support that)
Ejemplo n.º 5
0
    def _populateCommands(self):
        """
        Populate the command queues to be sent on modem state changes.
        """
        AbstractModemChannel._populateCommands(self)  # prepopulated

        c = self._commands["init"]
        c.remove("Z")  # do not reset, otherwise it will fall back to V1
        # reenable unsolicited responses, we don't have a seperate channel
        # so we need to process them here as well
        c.append("+CLIP=1")  # calling line identification presentation enable
        c.append(
            "+COLP=1")  # connected line identification presentation enable
        c.append("+CCWA=1")  # call waiting
        c.append("+CSSN=1,1"
                 )  # supplementary service notifications: send unsol. code
        c.append("+CTZU=1")  # timezone update
        c.append("+CTZR=1")  # timezone reporting
        c.append("+CREG=2"
                 )  # registration information (NOTE not all modems support =2)
        c.append("+CAOC=2")  # advice of charge: send unsol. code
        # GPRS unsolicited
        c.append("+CGEREP=2,1")
        c.append("+CGREG=2")
Ejemplo n.º 6
0
    def _populateCommands( self ):
        AbstractModemChannel._populateCommands( self )

        self._commands["init"].append( "%CUNS=2" )
Ejemplo n.º 7
0
    def _populateCommands(self):
        AbstractModemChannel._populateCommands(self)  # default command init

        self._commands["init"] = []