Re: DMRlink <-> HBlink communication


Steve N4IRS
 

It goes in the same directory as IPSC_Bridge.py

Mike called it (what a surprise)

Without template.bin
INFO 2017-07-13 13:17:33,862 DMRlink 'IPSC_Bridge.py' (c) 2015 N0MJS & the K0USY Group - SYSTEM STARTING...
INFO 2017-07-13 13:17:33,863 Version 20170620
INFO 2017-07-13 13:17:33,864 ID ALIAS MAPPER: 'peer_ids.csv' is current, not downloaded
INFO 2017-07-13 13:17:33,865 ID ALIAS MAPPER: 'subscriber_ids.csv' is current, not downloaded
INFO 2017-07-13 13:17:33,932 ID ALIAS MAPPER: peer_ids dictionary is available
INFO 2017-07-13 13:17:34,563 ID ALIAS MAPPER: subscriber_ids dictionary is available
INFO 2017-07-13 13:17:34,564 (DMR-MARC) IPSC Instance Created: 311246, 0.0.0.0:50022
INFO 2017-07-13 13:17:34,566 section = DMR-MARC
INFO 2017-07-13 13:17:34,567 Section DMR-MARC was not found, using DEFAULTS
INFO 2017-07-13 13:17:34,568 gateway = 127.0.0.1
INFO 2017-07-13 13:17:34,568 toGatewayPort = 31003
INFO 2017-07-13 13:17:34,569 fromGatewayPort = 31000
INFO 2017-07-13 13:17:34,570 DMRLink IPSC Bridge
ERROR 2017-07-13 13:17:34,572 Can not open template.bin file

Unhandled Error
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 73, in callWithContext
    return context.call({ILogContext: newCtx}, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
    return self.currentContext().callWithContext(ctx, func, *args, **kw)
  File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
    return func(*args,**kw)
  File "/usr/lib/python2.7/dist-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite
    why = selectable.doRead()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/udp.py", line 246, in doRead
    self.protocol.datagramReceived(data, addr)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 184, in datagramReceived
    self.func(_data, (_host, _port))
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 261, in import_datagramReceived
    self.send_voice_header(_rx_slot)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 526, in send_voice_header
    self.rewriteFrame(self._tempHead[i], _rx_slot.slot, _rx_slot.dst_id, _rx_slot.rf_src, _rx_slot.repeater_id)
  File "/usr/local/lib/python2.7/dist-packages/dmr_utils/ambe_bridge.py", line 562, in rewriteFrame
    _peerid         = _frame[1:5]                 # int32 peer who is sending us a packet
exceptions.TypeError: 'int' object has no attribute '__getitem__'

With template.bin
It works!

Steve N4IRS


On 7/13/2017 1:16 PM, Corey Dean N3FE wrote:
It goes directly in the dmrlink folder.

On Thu, Jul 13, 2017 at 1:14 PM, <w6ss@...> wrote:
I found template.bin, does it go in the /opt/dmrlink/bridge directory?
--
Vance W6SS


Join main@DVSwitch.groups.io to automatically receive all group messages.