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

All Samples(47)  |  Call(37)  |  Derive(0)  |  Import(10)

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
 
HUAWEI_CMD_DICT = get_cmd_dict_copy()
HUAWEI_CMD_DICT['get_syscfg'] = build_cmd_dict(re.compile(r"""
                                     \r\n
                                     \^SYSCFG:
 
HUAWEI_CMD_DICT['get_radio_status'] = build_cmd_dict(
                       end=re.compile('\r\n\+CFUN:\s?\d\r\n'),
                       extract=re.compile('\r\n\+CFUN:\s?(?P<status>\d)\r\n'))
 
HUAWEI_CMD_DICT['check_pin'] = build_cmd_dict(re.compile(r"""
 
#+CPBR: (1-200),80,14,0,0,0
HUAWEI_CMD_DICT['get_phonebook_size'] = build_cmd_dict(re.compile(r"""
                        \r\n
                        \+CPBR:\s

src/w/a/wader-HEAD/core/hardware/longcheer.py   wader(Download)
from wader.common.utils import revert_dict
 
from core.command import get_cmd_dict_copy, build_cmd_dict
from core.hardware.base import WCDMACustomizer
from core.middleware import WCDMAWrapper
 
# +CPBR: 1,"+4917XXXXXX",145,"005400650073007400200053007400720069","",129,""
LONGCHEER_CMD_DICT['get_contact'] = build_cmd_dict(re.compile(r"""
    \r\n
    \+CPBR:\s(?P<id>\d+),
 
LONGCHEER_CMD_DICT['list_contacts'] = build_cmd_dict(
    end=re.compile('(\r\n)?\r\n(OK)\r\n'), extract=re.compile(r"""
    \r\n
    \+CPBR:\s(?P<id>\d+),
 
LONGCHEER_CMD_DICT['get_network_mode'] = build_cmd_dict(
    re.compile("\r\n\+MODODR:\s?(?P<mode>\d+)\r\n"))
 
 

src/w/a/wader-HEAD/plugins/devices/zte_k2525.py   wader(Download)
                                   check_if_ucs2)
from wader.common.exceptions import LimitedServiceNetworkError
from core.command import build_cmd_dict
from core.middleware import WCDMAWrapper, NetworkOperator
from core.hardware.zte import (ZTEWCDMADevicePlugin,
ZTEK2525_CMD_DICT = ZTE_CMD_DICT.copy()
 
ZTEK2525_CMD_DICT['get_network_info'] = build_cmd_dict(re.compile(r"""
                             \r\n
                             \+COPS:\s+
                             """, re.VERBOSE))
 
ZTEK2525_CMD_DICT['get_network_mode'] = build_cmd_dict(re.compile(r"""
                             \r\n
                             \+ZSNT=
                             """, re.VERBOSE))
 
ZTEK2525_CMD_DICT['get_network_names'] = build_cmd_dict(re.compile(r"""
                             \(
                             (?P<id>\d+),
                             end=re.compile('\r\n\r\nOK\r\n'))
 
ZTEK2525_CMD_DICT['get_sms'] = build_cmd_dict(re.compile(r"""
                             \r\n
                             \+CMGR:\s

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
# Option devices like to append its serial number after the IMEI, ignore it
OPTION_CMD_DICT = get_cmd_dict_copy()
OPTION_CMD_DICT['get_imei'] = build_cmd_dict(re.compile(
                                    "\r\n(?P<imei>\d+),\S+\r\n", re.VERBOSE))
 
OPTION_CMD_DICT['get_sim_status'] = build_cmd_dict(re.compile(r"""
                                             """, re.VERBOSE))
 
OPTION_CMD_DICT['get_band'] = build_cmd_dict(re.compile(r"""
                                             \r\n(?P<name>.*):\s+(?P<active>\d)
                                             """, re.VERBOSE))
 
# AT_OPBM=?
# _OPBM: ("ANY","EGSM","DCS","PCS","G850","U2100","U1900","U1700","U17IV",
#           "U850","U800","U900","U17IX")
OPTION_CMD_DICT['get_bands'] = build_cmd_dict(re.compile(r"""

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
# \r\n+CPBR: (1-200),80,14,0,0,0\r\n\r\nOK\r\n
ICERA_CMD_DICT['get_phonebook_size'] = build_cmd_dict(
    re.compile(r"""
        \r\n
        \+CPBR:\s
# 0791447758100650040C9144977162470100009011503195310004D436390C\r\n
ICERA_CMD_DICT['list_sms'] = build_cmd_dict(
    re.compile(r"""
        \r\n
        \+CMGL:\s*
# 18\r\n
ICERA_CMD_DICT['get_sms'] = build_cmd_dict(
    re.compile(r"""
        \r\n
        \+CMGR:\s*
# \r\n%IPSYS: 1,2\r\n
ICERA_CMD_DICT['get_network_mode'] = build_cmd_dict(
    re.compile(r"""
        %IPSYS:\s
        (?P<mode>\d+),

src/w/a/wader-HEAD/core/hardware/zte.py   wader(Download)
 
from wader.common import consts
from core.command import get_cmd_dict_copy, build_cmd_dict
from core.hardware.base import WCDMACustomizer
from core.middleware import WCDMAWrapper
ZTE_CMD_DICT = get_cmd_dict_copy()
 
ZTE_CMD_DICT['get_band'] = build_cmd_dict(re.compile(r"""
                                            \r\n
                                            \+ZBANDI:\s?
                                            (?P<band>\d)
                                            \r\n
                                            """, re.VERBOSE))
 
ZTE_CMD_DICT['get_network_mode'] = build_cmd_dict(re.compile(r"""

src/w/a/wader-HEAD/core/hardware/sierra.py   wader(Download)
 
from wader.common import consts
from core.command import get_cmd_dict_copy, build_cmd_dict
from core.hardware.base import WCDMACustomizer
from core.middleware import WCDMAWrapper
SIERRA_CMD_DICT = get_cmd_dict_copy()
 
SIERRA_CMD_DICT['get_band'] = build_cmd_dict(re.compile(
                    "\r\n\!BAND:\s?(?P<band>\d+)"))
 
SIERRA_CMD_DICT['get_network_mode'] = build_cmd_dict(re.compile(

src/w/a/wader-HEAD/core/hardware/novatel.py   wader(Download)
 
from wader.common import consts
from core.command import get_cmd_dict_copy, build_cmd_dict
from core.hardware.base import WCDMACustomizer
from core.middleware import WCDMAWrapper
 
NOVATEL_CMD_DICT['get_network_mode'] = build_cmd_dict(
                          re.compile("\r\n\$NWRAT:\s?(?P<mode>\d,\d),\d\r\n"))
 
NOVATEL_CMD_DICT['get_band'] = build_cmd_dict(
                          re.compile("\r\n\$NWBAND:\s?(?P<band>[0-9A-Fa-f]+)"))

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,
CMD_DICT = HUAWEI_CMD_DICT.copy()
CMD_DICT['get_radio_status'] = \
    build_cmd_dict(re.compile('\r\n\+CFUN:\s?(?P<status>\d)\r\n'))
 
 

src/w/a/wader-HEAD/plugins/devices/huawei_e620.py   wader(Download)
 
from wader.common.consts import WADER_CONNTYPE_PCMCIA
from core.command import build_cmd_dict
from core.hardware.huawei import (HuaweiWCDMADevicePlugin,
                                          HuaweiWCDMACustomizer)
 
E620_CMD_DICT = HuaweiWCDMACustomizer.cmd_dict.copy()
E620_CMD_DICT['get_roaming_ids'] = build_cmd_dict(re.compile(