Exemple #1
0
 def __init__(self, root):
     """
     Constructor
     :type root: weakref
     :param root: a weak reference on the root class (Agilent8960)
     """
     self.__root = root
     Messaging.__init__(self, root)
Exemple #2
0
 def set_cell_broadcast_message_repetition_period(self, repetition_period):
     """
     Sets the user defined text message in the cell broadcast message
     :type repetition_period: int
     :param repetition_period: the repetition period in seconds for sending
                               the cell broadcast message, range: 1 to 1800
                               default value is 30
     """
     Messaging.set_cell_broadcast_message_repetition_period(
         self, repetition_period)
Exemple #3
0
 def set_custom_cell_broadcast_data(self, data_string,
                                    cell_broadcast_message_index):
     """
     Sets the user defined data str in the cell broadcast message
     :type data_string: str
     :param data_string: user defined text message
     :type cell_broadcast_message_index: int
     :param cell_broadcast_message_index:cell broadcast message number
     Possible values for Agilent 8960 :1, 2 or 3
     """
     Messaging.set_custom_cell_broadcast_data(self, data_string,
                                              cell_broadcast_message_index)
Exemple #4
0
 def set_cell_broadcast_message_update_number(self, update_number,
                                              cell_broadcast_message_index):
     """
     Sets the number to identify a particular version of the message
     :type update_number: int
     :param update_number: the number to identify the message version
     Possible values: 0-15
     :type cell_broadcast_message_index: int
     :param cell_broadcast_message_index:cell broadcast message number
     Possible values for Agilent 8960 :1, 2 or 3
     """
     Messaging.set_cell_broadcast_message_update_number(
         self, update_number, cell_broadcast_message_index)
Exemple #5
0
 def set_custom_cell_broadcast_text_message(self,
                                            text,
                                            cell_broadcast_message_index=1):
     """
     Sets the user defined text message in the cell broadcast message
     :type text: str
     :param text: user defined text message
     :type cell_broadcast_message_index: int
     :param cell_broadcast_message:cell broadcast message number
     Possible values for Agilent 8960 :1, 2 or 3
     """
     Messaging.set_custom_cell_broadcast_text_message(
         self, text, cell_broadcast_message_index)
Exemple #6
0
 def set_cell_broadcast_message_identifier(self,
                                           message_identifier,
                                           cell_broadcast_message_index=1):
     """
     Set cell broadcast message identifier to identify the message topic.
     :type message_identifier: int
     :param message_identifier: The parameter is a header number identifying
      the message topic  (such as 'Weather Report' or 'Traffic Information').
     :type cell_broadcast_message_index: int
     :param cell_broadcast_message_index:cell broadcast message number
     Possible values for Agilent 8960 :1, 2 or 3
     """
     Messaging.set_cell_broadcast_message_identifier(
         self, message_identifier, cell_broadcast_message_index)
Exemple #7
0
 def select_cell_broadcast_message_content(self,
                                           cell_broadcast_message_content,
                                           cell_broadcast_message_index=1):
     """
     Selects SMS content.
     :type cell_broadcast_message_content: str
     :param cell_broadcast_message_content: the cell broadcast sms
            content to select. Possible values:
             - "TXT1"
             - "TXT2"
             - "CTEX"
             - "CDAT"
     :type cell_broadcast_message_index: int
     :param cell_broadcast_message:cell broadcast message number
     Possible values for Agilent 8960 :1, 2 or 3
     """
     Messaging.select_cell_broadcast_message_content(
         self, cell_broadcast_message_content, cell_broadcast_message_index)
Exemple #8
0
 def stop_cell_broadcast(self):
     """
     Stops the cell broadcast service.
     """
     Messaging.stop_cell_broadcast(self)
Exemple #9
0
 def start_cell_broadcast(self):
     """
     Starts the cell broadcast service.
     """
     Messaging.start_cell_broadcast(self)