Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(78)  |  Call(69)  |  Derive(0)  |  Import(9)

src/w/a/wader-HEAD/core/protocol.py   wader(Download)
import wader.common.signals as S
 
from core.command import ATCmd
 
# Standard unsolicited notifications
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name)
        cmd = ATCmd('AT+CPBW=%d,"%s",%d,"%s"' % args, name='add_contact')
        return self.queue_at_cmd(cmd)
 
    def cancel_ussd(self):
        """Cancels an ongoing USSD session"""
        cmd = ATCmd("AT+CUSD=2", name='cancel_ussd')
        """
        atstr = 'AT+CPWD="SC","%s","%s"' % (str(oldpin), str(newpin))
        cmd = ATCmd(atstr, name='change_pin')
        return self.queue_at_cmd(cmd)
 
        # Note: don't log these exceptions
        exceptions = (E.SimFailure,)
        cmd = ATCmd('AT+CPIN?', name='check_pin', nolog=exceptions)
        return self.queue_at_cmd(cmd)
 

src/w/a/wader-HEAD/core/hardware/huawei.py   wader(Download)
 
from core.middleware import WCDMAWrapper
from core.command import get_cmd_dict_copy, build_cmd_dict, ATCmd
from core.contact import Contact
from wader.common import consts
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name, raw)
        cmd = ATCmd('AT^CPBW=%d,"%s",%d,"%s",%d' % args, name='add_contact')
        return self.queue_at_cmd(cmd)
 
        def get_them(ignored=None):
            cmd = ATCmd('AT^CPBR=1,%d' % self.device.sim.size,
                        name='list_contacts', nolog=exceptions)
            d = self.queue_at_cmd(cmd)
            d.addCallback(
    def get_contact(self, index):
        cmd = ATCmd('AT^CPBR=%d' % index, name='get_contact')
        d = self.queue_at_cmd(cmd)
        d.addCallback(lambda match: self._regexp_to_contact(match[0]))
        return d
            ussd_enc = encode_str(compress_7_to_8_bit(gsm))
 
            cmd = ATCmd('AT+CUSD=1,"%s",15' % ussd_enc, name='send_ussd')
            return self.queue_at_cmd(cmd)
 

src/w/a/wader-HEAD/core/hardware/option.py   wader(Download)
from wader.common.utils import rssi_to_percentage, revert_dict
 
from core.command import get_cmd_dict_copy, build_cmd_dict, ATCmd
from core.exported import HSOExporter
from core.hardware.base import WCDMACustomizer
            raise E.CallIndexError("conn_id is None")
 
        cmd = ATCmd('AT_OWANDATA=%d' % conn_id, name='get_ip4_config')
        d = self.queue_at_cmd(cmd)
 
 
        args = (conn_id, _auth, user, passwd)
        cmd = ATCmd('AT$QCPDPP=%d,%d,"%s","%s"' % args,
                    name='hso_authenticate')
        d = self.queue_at_cmd(cmd)

src/w/a/wader-HEAD/core/hardware/icera.py   wader(Download)
from wader.common.utils import revert_dict, rssi_to_percentage
 
from core.command import get_cmd_dict_copy, build_cmd_dict, ATCmd
from core.exported import HSOExporter
from core.hardware.base import WCDMACustomizer
            raise E.CallIndexError("conn_id is None")
 
        cmd = ATCmd('AT%%IPDPADDR=%d' % conn_id, name='get_ip4_config')
        d = self.queue_at_cmd(cmd)
 
 
        args = (conn_id, _auth, user, passwd)
        cmd = ATCmd('AT%%IPDPCFG=%d,0,%d,"%s","%s"' % args,
                    name='hso_authenticate')
        d = self.queue_at_cmd(cmd)

src/w/a/wader-HEAD/plugins/devices/huawei_k2540.py   wader(Download)
from wader.common.encoding import pack_ucs2_bytes
 
from core.command import ATCmd, build_cmd_dict
from core.hardware.base import build_band_dict
from core.hardware.huawei import (HuaweiWCDMADevicePlugin,
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name, raw)
        cmd = ATCmd('AT^CPBW=%d,"%s",%d,"%s",%d' % args, name='add_contact')
 
        return self.queue_at_cmd(cmd)

src/w/a/wader-HEAD/plugins/devices/huawei_e870.py   wader(Download)
from wader.common import consts
from wader.common.encoding import pack_ucs2_bytes
from core.command import ATCmd
from core.hardware.base import build_band_dict
from core.hardware.huawei import (HuaweiWCDMADevicePlugin,
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name, raw)
        cmd = ATCmd('AT^CPBW=%d,"%s",%d,"%s",%d' % args, name='add_contact')
 
        return self.queue_at_cmd(cmd)

src/w/a/wader-HEAD/plugins/devices/huawei_e660a.py   wader(Download)
 
from wader.common import consts
from core.command import ATCmd
from wader.common.encoding import pack_ucs2_bytes
from core.hardware.base import build_band_dict
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name, raw)
        cmd = ATCmd('AT^CPBW=%d,"%s",%d,"%s",%d' % args, name='add_contact')
 
        return self.queue_at_cmd(cmd)

src/w/a/wader-HEAD/plugins/devices/huawei_e220.py   wader(Download)
from wader.common.encoding import pack_ucs2_bytes
 
from core.command import ATCmd
from core.hardware.base import build_band_dict
from core.hardware.huawei import (HuaweiWCDMADevicePlugin,
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name, raw)
        cmd = ATCmd('AT^CPBW=%d,"%s",%d,"%s",%d' % args, name='add_contact')
 
        return self.queue_at_cmd(cmd)

src/w/a/wader-HEAD/plugins/devices/huawei_b970.py   wader(Download)
from wader.common.consts import WADER_CONNTYPE_USB
from wader.common.encoding import pack_ucs2_bytes
from core.command import ATCmd
from core.hardware.huawei import (HuaweiWCDMADevicePlugin,
                                          HuaweiWCDMACustomizer,
        category = 145 if number.startswith('+') else 129
        args = (index, number, category, name, raw)
        cmd = ATCmd('AT^CPBW=%d,"%s",%d,"%s",%d' % args, name='add_contact')
 
        return self.queue_at_cmd(cmd)