~nherriot/bcm/tags

« back to all changes in this revision

Viewing changes to bcm-2.99.03-alpha1/src/core/plugins/devices/huawei_k4505.py

  • Committer: andrewbird
  • Date: 2010-04-29 07:52:44 UTC
  • Revision ID: svn-v4:302e0824-f0b9-4af8-b993-bc22a3d40462:tags:766
Create tag bcm-2.99.03-alpha1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
# Copyright (C) 2006-2010  Vodafone España, S.A.
 
3
# Author:  Andrew Bird
 
4
#
 
5
# This program is free software; you can redistribute it and/or modify
 
6
# it under the terms of the GNU General Public License as published by
 
7
# the Free Software Foundation; either version 2 of the License, or
 
8
# (at your option) any later version.
 
9
#
 
10
# This program is distributed in the hope that it will be useful,
 
11
# but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
# GNU General Public License for more details.
 
14
#
 
15
# You should have received a copy of the GNU General Public License along
 
16
# with this program; if not, write to the Free Software Foundation, Inc.,
 
17
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 
18
 
 
19
from wader.common import consts
 
20
from wader.common.hardware.base import build_band_dict
 
21
from wader.common.hardware.huawei import (HuaweiWCDMADevicePlugin,
 
22
                                          HuaweiWCDMACustomizer,
 
23
                                          HUAWEI_BAND_DICT)
 
24
 
 
25
 
 
26
class HuaweiK4505Customizer(HuaweiWCDMACustomizer):
 
27
    """
 
28
    :class:`~wader.common.hardware.huawei.HuaweiWCDMACustomizer` for the K4505
 
29
    """
 
30
 
 
31
    # GSM/GPRS/EDGE 850/900/1800/1900 MHz
 
32
    # HSDPA/UMTS 2100/900 MHz
 
33
 
 
34
    band_dict = build_band_dict(
 
35
                  HUAWEI_BAND_DICT,
 
36
                  [consts.MM_NETWORK_BAND_ANY,
 
37
 
 
38
                   consts.MM_NETWORK_BAND_G850,
 
39
                   consts.MM_NETWORK_BAND_EGSM,
 
40
                   consts.MM_NETWORK_BAND_DCS,
 
41
                   consts.MM_NETWORK_BAND_PCS,
 
42
 
 
43
#                   consts.MM_NETWORK_BAND_U900, # waiting for docs
 
44
                   consts.MM_NETWORK_BAND_U2100])
 
45
 
 
46
 
 
47
class HuaweiK4505(HuaweiWCDMADevicePlugin):
 
48
    """
 
49
    :class:`~wader.common.plugin.DevicePlugin` for Huawei's Vodafone K4505
 
50
    """
 
51
    name = "Huawei K4505"
 
52
    version = "0.1"
 
53
    author = u"Andrew Bird"
 
54
    custom = HuaweiK4505Customizer()
 
55
 
 
56
    __remote_name__ = "K4505"
 
57
 
 
58
    __properties__ = {
 
59
        'ID_VENDOR_ID': [0x12d1],
 
60
        'ID_MODEL_ID': [0x1464],
 
61
    }
 
62
 
 
63
 
 
64
huaweik4505 = HuaweiK4505()