Permalink
Browse files

Huawei E220 - Disable GetRoamingIds, as it causes device to reset

  • Loading branch information...
andrewbird committed May 1, 2012
1 parent 02e9d24 commit bc692f52cb008d488388ee33dbc19907fd6bf834
Showing with 8 additions and 0 deletions.
  1. +8 −0 plugins/devices/huawei_e220.py
@@ -17,8 +17,11 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+from twisted.internet import defer
+
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,
@@ -52,6 +55,11 @@ def _add_contact(self, name, number, index):
return self.queue_at_cmd(cmd)
+ def get_roaming_ids(self):
+ # Note: We have to disable this and return an empty list or the device
+ # resets and drops off the USB bus
+ return defer.succeed([])
+
def send_ussd(self, ussd):
return self._send_ussd_ucs2_mode(ussd)

0 comments on commit bc692f5

Please sign in to comment.