Example #1
0
 def addCommandSetOptions(self, data):
     """
      Add device options
      @param data: data dict()
     """
     command = GlobalsatHandler.addCommandSetOptions(self, data)
     for item in data:
         val = str(item['value'])
         if item['option'] == 'freq_mov':
             command += ',Ri=' + val
         elif item['option'] == 'freq_idle':
             command += ',Ra=' + val
         elif item['option'] == 'send_mov':
             command += ',Ro=' + val
         elif item['option'] == 'voice_phone_1':
             command += ',V4=' + val
         elif item['option'] == 'voice_phone_2':
             command += ',V8=' + val
         elif item['option'] == 'voice_phone_3':
             command += ',V9=' + val
         elif item['option'] == 'voice_call_on_sos':
             command += ',V0=' + val
         elif item['option'] == 'send_by_angle':
             command += ',S8=' + val
     return command
Example #2
0
 def addCommandSetOptions(self, data):
     """
      Add device options
      @param data: data dict()
     """
     command = GlobalsatHandler.addCommandSetOptions(self, data)
     for item in data:
         val = str(item['value'])
         if item['option'] == 'freq_mov':
             command += ',R1=' + val
         elif item['option'] == 'freq_idle':
             command += ',R0=' + val
         elif item['option'] == 'send_mov':
             command += ',R3=' + val
     return command