0001 ### BITPIM 0002 ### 0003 ### Copyright (C) 2007 Joe Pham <djpham@bitpim.org> 0004 ### 0005 ### This program is free software; you can redistribute it and/or modify 0006 ### it under the terms of the BitPim license as detailed in the LICENSE file. 0007 ### 0008 ### $Id: com_motov325.py 4541 2008-01-04 03:41:51Z djpham $ 0009 0010 """Communicate with Motorola phones using AT commands""" 0011 0012 import time 0013 0014 import common 0015 import com_motov3m as v3m 0016 import helpids 0017 import p_motov325 0018 0019 parentphone=v3m.Phone 0020 class Phone(parentphone): 0021 desc='Moto-V325' 0022 helpid=helpids.ID_PHONE_MOTOV325 0023 protocolclass=p_motov325 0024 serialsname='motov325' 0025 0026 builtinringtones=( 0027 (0, ('Silent',)), 0028 (5, ('Vibe Dot', 'Vibe Dash', 'Vibe Dot Dot', 'Vibe Dot Dash', 0029 'Vibe Pulse')), 0030 (11, ('Alert', 'Standard', 'Bells', 'Triads', 'Up and Down')), 0031 (30, ('Moonlit Haze', 'Nightlife', 'Wind Chime', 'Random', 0032 'Bit & Bytes', 'Door Bell', 'Ding', 'One Moment', 'Provincial', 0033 'Harmonics', 'Interlude', 'Snaggle', 'Cosmic')), 0034 ) 0035 0036 def getwallpapers(self, fundamentals): 0037 """Retrieve wallpaper data""" 0038 # The V325 needs some time to switch from BREW back to MODEM mode 0039 # without this sleep, the switch will always come back with ERROR 0040 self.log('Waiting for the phone to switch back to mode modem') 0041 time.sleep(2) 0042 return parentphone.getwallpapers(self, fundamentals) 0043 0044 #------------------------------------------------------------------------------ 0045 parentprofile=v3m.Profile 0046 class Profile(parentprofile): 0047 serialsname=Phone.serialsname 0048 0049 # use for auto-detection 0050 phone_manufacturer='Motorola' 0051 phone_model='V325 ' 0052 common_model_name='V325' 0053 generic_phone_model='Motorola V325 Phone' 0054 0055 # our targets are the same for all origins 0056 imagetargets={} 0057 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper", 0058 {'width': 176, 'height': 184, 'format': "JPEG"})) 0059 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid", 0060 {'width': 96, 'height': 72, 'format': "JPEG"})) 0061 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen", 0062 {'width': 176, 'height': 220, 'format': "JPEG"})) 0063 0064
Generated by PyXR 0.9.4