當前位置: 首頁>>代碼示例>>Python>>正文


Python dmrlink.IPSC類代碼示例

本文整理匯總了Python中dmrlink.IPSC的典型用法代碼示例。如果您正苦於以下問題:Python IPSC類的具體用法?Python IPSC怎麽用?Python IPSC使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了IPSC類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

    def __init__(self, *args, **kwargs):
        IPSC.__init__(self, *args, **kwargs)
        self.CALL_DATA = []
        
        
        #
        # Define default values for operation.  These will be overridden by the .cfg file if found
        #

        self._currentTG = self._no_tg
        self._sequenceNr = 0
        self.readConfigFile(self._configFile)
    
        print('DMRLink ambe server')

        #
        # Open output sincs
        #
        if self._outToFile == True:
            f = open('ambe.bin', 'wb')
            print('Opening output file: ambe.bin')
        if self._outToUDP == True:
            self._sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
            print('Send UDP frames to DMR gateway {}:{}'.format(self._gateway, self._gateway_port))

        try:
            thread.start_new_thread( self.remote_control, (self._remote_control_port, ) )
        except:
            traceback.print_exc()
            print( "Error: unable to start thread" )
開發者ID:cyber5tar86,項目名稱:DMRlink,代碼行數:30,代碼來源:ambe_audio.py

示例2: __init__

    def __init__(self, _name, _config, _logger, _report):
        IPSC.__init__(self, _name, _config, _logger, _report)

        self.STATUS = {
            1: {'RX_TGID':'\x00', 'TX_TGID':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'},
            2: {'RX_TGID':'\x00', 'TX_TGID':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'}
        }
        
        self.last_seq_id = '\x00'
        self.call_start = 0
開發者ID:lorenzocipriani,項目名稱:DMRlink,代碼行數:10,代碼來源:confbridge.py

示例3: __init__

    def __init__(self, *args, **kwargs):
        IPSC.__init__(self, *args, **kwargs)
        if BRIDGES:
            logger.info('Initializing backup/polite bridging')
            self.BRIDGE = False
        else:
            self.BRIDGE = True
            logger.info('Initializing standard bridging')

        self.IPSC_STATUS = {
            'TS1': {'RX_GROUP':'\x00', 'TX_GROUP':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'},
            'TS2': {'RX_GROUP':'\x00', 'TX_GROUP':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'}
        }
開發者ID:n8ohu,項目名稱:DMRlink,代碼行數:13,代碼來源:bridge.py

示例4: __init__

 def __init__(self, _name, _config, _logger, _report):
     IPSC.__init__(self, _name, _config, _logger, _report)
     self.CALL_DATA = []
     
     if GROUP_SRC_SUB:
         self._logger.info('Playback: USING SUBSCRIBER ID: %s FOR GROUP REPEAT', GROUP_SRC_SUB)
         self.GROUP_SRC_SUB = hex_str_3(GROUP_SRC_SUB)
     
     if GROUP_REPEAT:
         self._logger.info('Playback: GROUP REPEAT ENABLED')
         
     if PRIVATE_REPEAT:
         self._logger.info('Playback: PRIVATE REPEAT ENABLED')
開發者ID:lorenzocipriani,項目名稱:DMRlink,代碼行數:13,代碼來源:playback.py

示例5: __init__

    def __init__(self, _name, _config, _logger, report):
        IPSC.__init__(self, _name, _config, _logger, report)
        self.BRIDGES = BRIDGES
        if self.BRIDGES:
            self._logger.info('(%s) Initializing backup/polite bridging', self._system)
            self.BRIDGE = False
        else:
            self.BRIDGE = True
            self._logger.info('Initializing standard bridging')

        self.IPSC_STATUS = {
            1: {'RX_GROUP':'\x00', 'TX_GROUP':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'},
            2: {'RX_GROUP':'\x00', 'TX_GROUP':'\x00', 'RX_TIME':0, 'TX_TIME':0, 'RX_SRC_SUB':'\x00', 'TX_SRC_SUB':'\x00'}
        }
        
        self.last_seq_id = '\x00'
        self.call_start = 0
開發者ID:lorenzocipriani,項目名稱:DMRlink,代碼行數:17,代碼來源:bridge.py

示例6: startProtocol

        def startProtocol(self):
            IPSC.startProtocol(self)

            self._bridge_presence = task.LoopingCall(self.bridge_presence_loop)
            self._bridge_presence_loop = self._bridge_presence.start(self._local['ALIVE_TIMER'])
開發者ID:n8ohu,項目名稱:DMRlink,代碼行數:5,代碼來源:bridge.py

示例7: __init__

 def __init__(self, *args, **kwargs):
     IPSC.__init__(self, *args, **kwargs)
     self.CALL_DATA = []
開發者ID:kantooon,項目名稱:DMRlink,代碼行數:3,代碼來源:playback.py

示例8: __init__

 def __init__(self, *args, **kwargs):
     IPSC.__init__(self, *args, **kwargs)
開發者ID:gr0wl3r,項目名稱:DMRlink,代碼行數:2,代碼來源:rcm.py

示例9: __init__

 def __init__(self, _name, _config, _logger, _report):
     IPSC.__init__(self, _name, _config, _logger, _report)
     self.CALL_DATA = []
開發者ID:lorenzocipriani,項目名稱:DMRlink,代碼行數:3,代碼來源:record.py

示例10: __init__

 def __init__(self, *args, **kwargs):
     IPSC.__init__(self, *args, **kwargs)
     self.ACTIVE_CALLS = []
開發者ID:KD8EYF,項目名稱:DMRlink,代碼行數:3,代碼來源:log.py

示例11: __init__

 def __init__(self, *args, **kwargs):
     IPSC.__init__(self, *args, **kwargs)
     self.BRIDGE = False
     self.ACTIVE_CALLS = []
     logger.info('(%s) Initializing bridge status as: %s', self._network, self.BRIDGE)
開發者ID:acharlton,項目名稱:DMRlink,代碼行數:5,代碼來源:bridge.py

示例12: __init__

 def __init__(self, _name, _config, _logger, _report):
     IPSC.__init__(self, _name, _config, _logger, _report)
     self.ACTIVE_CALLS = []
開發者ID:lorenzocipriani,項目名稱:DMRlink,代碼行數:3,代碼來源:log.py

示例13: __init__

 def __init__(self, _name, _config, _logger, _report):
     IPSC.__init__(self, _name, _config, _logger, _report)
開發者ID:lorenzocipriani,項目名稱:DMRlink,代碼行數:2,代碼來源:rcm.py


注:本文中的dmrlink.IPSC類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。