当前位置: 首页>>代码示例>>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;未经允许,请勿转载。