[Newbie!] Mute Parrot ?


Rob MW0CQU
 

HI All,

havent been a daily coder for several decades (DCL script on a MicroVax) so bear with me as Im on a steep

learning curve

Im running hbconfbridge.py on an Ubuntu test system to learn what its doing before even thinking
about going near a "production" system.

 

I have set up a test harness :

Slot 1, TG1 Test TG

Slot 2 TG2 Parrot 

I have setup hb_confbridge_rules.py with two systems - a Master & Parrot

hblink.cfg also contains definitions for those two peers

I run hb_confbridge.py and both peers are happilly pinging/ponging  away

On my radio I select TG 2 on slot 2 and TX a "count" 

I get no audio back, the repeater doesnt go into TX mode and in ERROR or DEBUG modes I get the following.

 

DEBUG 2018-10-18 00:02:37,279 (PARROT) DMRD - Sequence: 53, RF Source: 10004, Destination ID: 2

Unhandled Error

Traceback (most recent call last):

  File "/home/rob/.local/lib/python2.7/site-packages/twisted/python/log.py", line 86, in callWithContext

    return context.call({ILogContext: newCtx}, func, *args, **kw)

  File "/home/rob/.local/lib/python2.7/site-packages/twisted/python/context.py", line 122, in callWithContext

    return self.currentContext().callWithContext(ctx, func, *args, **kw)

  File "/home/rob/.local/lib/python2.7/site-packages/twisted/python/context.py", line 85, in callWithContext

    return func(*args,**kw)

  File "/home/rob/.local/lib/python2.7/site-packages/twisted/internet/posixbase.py", line 614, in _doReadOrWrite

    why = selectable.doRead()

--- <exception caught here> ---

  File "/home/rob/.local/lib/python2.7/site-packages/twisted/internet/udp.py", line 249, in doRead

    self.protocol.datagramReceived(data, addr)

  File "/home/rob/dmr/HBlink/hblink.py", line 465, in peer_datagramReceived

    self.dmrd_received(_peer_id, _rf_src, _dst_id, _seq, _slot, _call_type, _frame_type, _dtype_vseq, _stream_id, _data)

  File "./hb_confbridge.py", line 259, in dmrd_received

    self._system, int_id(_stream_id), get_alias(_rf_src, subscriber_ids), int_id(_rf_src), get_alias(_peer_id, peer_ids), int_id(_peer_id), get_alias(_dst_id, talkgroup_ids), int_id(_dst_id), _slot)

exceptions.NameError: global name 'subscriber_ids' is not defined

 
All of the other runtime "niggles" Ive sorted out but this one has me beat

 

Is my understanding correct that running hb_confbridge.py with two peers is the right way to do this ? or is there a README somewhere Ive missed please ?

 

MTIA es 73 

Rob 

 


Cort N0MJS <n0mjs@...>
 

The part that matters is what I’ve quoted below. This should not be a configuration error, but something else wrong.

For the name error to be true, that subscriber_ids is not defined (globally) would mean you should have seen an error on startup with line 508 where this happens:

subscriber_ids = mk_id_dict(CONFIG['ALIASES']['PATH'], CONFIG['ALIASES']['SUBSCRIBER_FILE’])

Take a look at the logging output when you start hb_confbridge.py and send me anything after message about registration ACL (Access Control List) and before "HBlink \'hb_router.py\' (c) 2016 N0MJS & the K0USY Group - SYSTEM STARTING…”

Please use PM, there’s no need to spam the list with it. Also indicate if you have changed ANYTHING in the source files, no matter how small it seems.

0x49 DE N0MJS

On Oct 17, 2018, at 6:18 PM, Rob MW0CQU <mw0cqu@...> wrote:

  File "./hb_confbridge.py", line 259, in dmrd_received

    self._system, int_id(_stream_id), get_alias(_rf_src, subscriber_ids), int_id(_rf_src), get_alias(_peer_id, peer_ids), int_id(_peer_id), get_alias(_dst_id, talkgroup_ids), int_id(_dst_id), _slot)

exceptions.NameError: global name 'subscriber_ids' is not defined


--
Cort Buffington
H: +1-785-813-1501
M: +1-785-865-7206






Rob MW0CQU
 

Thanks for the reply Cort.

 

consider this thread closed due to finger trouble. I've recloned from the github and now have a working master, and a separate

working parrot

Still having an issue which I think I ought to start a separate thread on rather than take this thread off topic

 

73 ' de Rob