Re: DMR to Analog Bridge PTT assert quirk


Steve N4IRS
 

You are. When you transmit from analog or DMR, nothing is logged by AB? You do hear the traffic at the "other end" ?

On 9/14/19 11:50 PM, David Ranch wrote:

Hello Steve,

Run AB in the foreground and capture the output.

I believe I am running in the foreground here unless I'm missing some additional command line option?
--
[root@ww6bay-asl bin]#  /opt/Analog_Bridge/Analog_Bridge /opt/Analog_Bridge/Analog_Bridge.ini
I: 2019-09-15 01:50:06.281 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018           
I: 2019-09-15 01:50:06.281 Copyright (C) 2018 DVSwitch, INAD.                               
I: 2019-09-15 01:50:06.281 Created by Mike N4IRR and Steve N4IRS                            
I: 2019-09-15 01:50:06.281 Analog Bridge comes with ABSOLUTELY NO WARRANTY                  
I: 2019-09-15 01:50:06.281                                                                  
I: 2019-09-15 01:50:06.281 This software is for use on amateur radio networks only,         
I: 2019-09-15 01:50:06.281 it is to be used for educational purposes only. Its use on       
I: 2019-09-15 01:50:06.281 commercial networks is strictly prohibited.                      
I: 2019-09-15 01:50:06.281                                                                  
I: 2019-09-15 01:50:06.281 Analog Bridge is starting                                        
M: 2019-09-15 01:50:06.281 Setting [GENERAL] logLevel -> 1                                  
M: 2019-09-15 01:50:06.281 Setting [GENERAL] exportMetadata -> true                         
M: 2019-09-15 01:50:06.281 Setting [GENERAL] subscriberFile -> /var/lib/dvswitch/subscriber_ids.csv
M: 2019-09-15 01:50:06.281 Setting [GENERAL] decoderFallBack -> false                             
M: 2019-09-15 01:50:06.281 Setting [GENERAL] useEmulator -> false                                 
M: 2019-09-15 01:50:06.281 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470                    
M: 2019-09-15 01:50:06.282 Setting [GENERAL] outputAudioDevice -> /dev/null                       
M: 2019-09-15 01:50:06.282 Setting [GENERAL] inputAudioDevice -> /dev/null                        
M: 2019-09-15 01:50:06.282 Setting [GENERAL] useMicrophone -> false                               
M: 2019-09-15 01:50:06.282 Setting [GENERAL] useVox -> false                                      
M: 2019-09-15 01:50:06.282 Setting [GENERAL] voxDecay -> 2                                        
M: 2019-09-15 01:50:06.282 Setting [GENERAL] voxTrigger -> 200                                    
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] server -> 127.0.0.1                               
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] fromDMRPort -> 31100                              
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] toDMRPort -> 31103                                
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] ambeMode -> DMR
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] gatewayDmrId -> 3107955
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] repeaterID -> 310795501
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] txTg -> 31075
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] txTs -> 2
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] colorCode -> 1
M: 2019-09-15 01:50:06.282 Setting [USRP] server -> 127.0.0.1
M: 2019-09-15 01:50:06.282 Setting [USRP] toASLPort -> 32001
M: 2019-09-15 01:50:06.282 Setting [USRP] fromASLPort -> 34001
M: 2019-09-15 01:50:06.282 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2019-09-15 01:50:06.282 Setting [USRP] agcGain -> -20
M: 2019-09-15 01:50:06.282 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2019-09-15 01:50:06.282 Setting [USRP] dmrGain -> 0.35
M: 2019-09-15 01:50:06.282 Setting [DV3000] server -> /dev/ttyUSB0
M: 2019-09-15 01:50:06.282 Setting [DV3000] port -> 460800
M: 2019-09-15 01:50:06.282 Setting [DV3000] serial -> true
W: 2019-09-15 01:50:06.282 ioctl reset error
W: 2019-09-15 01:50:06.282 ioctl speed error
W: 2019-09-15 01:50:06.282 ioctl stereo error
W: 2019-09-15 01:50:06.282 ioctl setfmt error
M: 2019-09-15 01:50:06.282 Audio In/Out Device: /dev/null
I: 2019-09-15 01:50:06.282 Open UDP listener on 127.0.0.1:31100
I: 2019-09-15 01:50:06.282 Open USRP on 127.0.0.1:32001
D: 2019-09-15 01:50:06.282 Attempt to  init DV3000 in DMR mode
M: 2019-09-15 01:50:06.282 Connecting to DV3000 hardware......
M: 2019-09-15 01:50:06.294 Begin DV3000 decode
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
Version 1.0 (c) Copyright 2009
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file ``LICENSE'' for details.
I: 2019-09-15 01:50:06.295 Subscriber IDs loaded: 0
I: 2019-09-15 01:50:06.295 Default extended metadata <3107955>
I: 2019-09-15 01:50:06.296 Using hardware AMBE vocoder
I: 2019-09-15 01:50:06.296 Starting Analog_Bridge --> USRP thread
I: 2019-09-15 01:50:06.296 Open UDP listener on 127.0.0.1:34001
I: 2019-09-15 01:50:06.297 Starting USRP --> HB_Bridge thread





^C
[root@ww6bay-asl bin]#
--




As I said before:
This is from /lib/systemd/system/analog_bridge.service

Environment=AnalogBridgeLogDir=/var/log/dvswitch/Analog_Bridge

This is the location of the AB log file.

On 9/14/19 9:55 PM, David Ranch wrote:

Hey Steve,

There should be output from AB.
Change in AB.ini:
logLevel = 2
To:
logLevel = 1

Without seeing the traffic in AB there is no way to troubleshoot.

Ok, I made the requested change (it shows it as being set to "1") but I don't see any additional logging when I key up on the DMR radio be it in the STDOUT or in the /var/log/Analog_Bridge.log.  Here is the AB startup output:
--
[root@ww6bay-asl bin]# vim /opt/Analog_Bridge/Analog_Bridge.ini
[root@ww6bay-asl bin]#  /opt/Analog_Bridge/Analog_Bridge /opt/Analog_Bridge/Analog_Bridge.ini
I: 2019-09-15 01:50:06.281 Analog Bridge Version 1.1 Wed  9 May 05:56:17 EDT 2018           
I: 2019-09-15 01:50:06.281 Copyright (C) 2018 DVSwitch, INAD.                               
I: 2019-09-15 01:50:06.281 Created by Mike N4IRR and Steve N4IRS                            
I: 2019-09-15 01:50:06.281 Analog Bridge comes with ABSOLUTELY NO WARRANTY                  
I: 2019-09-15 01:50:06.281                                                                  
I: 2019-09-15 01:50:06.281 This software is for use on amateur radio networks only,         
I: 2019-09-15 01:50:06.281 it is to be used for educational purposes only. Its use on       
I: 2019-09-15 01:50:06.281 commercial networks is strictly prohibited.                      
I: 2019-09-15 01:50:06.281                                                                  
I: 2019-09-15 01:50:06.281 Analog Bridge is starting                                        
M: 2019-09-15 01:50:06.281 Setting [GENERAL] logLevel -> 1                                  
M: 2019-09-15 01:50:06.281 Setting [GENERAL] exportMetadata -> true                         
M: 2019-09-15 01:50:06.281 Setting [GENERAL] subscriberFile -> /var/lib/dvswitch/subscriber_ids.csv
M: 2019-09-15 01:50:06.281 Setting [GENERAL] decoderFallBack -> false                             
M: 2019-09-15 01:50:06.281 Setting [GENERAL] useEmulator -> false                                 
M: 2019-09-15 01:50:06.281 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470                    
M: 2019-09-15 01:50:06.282 Setting [GENERAL] outputAudioDevice -> /dev/null                       
M: 2019-09-15 01:50:06.282 Setting [GENERAL] inputAudioDevice -> /dev/null                        
M: 2019-09-15 01:50:06.282 Setting [GENERAL] useMicrophone -> false                               
M: 2019-09-15 01:50:06.282 Setting [GENERAL] useVox -> false                                      
M: 2019-09-15 01:50:06.282 Setting [GENERAL] voxDecay -> 2                                        
M: 2019-09-15 01:50:06.282 Setting [GENERAL] voxTrigger -> 200                                    
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] server -> 127.0.0.1                               
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] fromDMRPort -> 31100                              
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] toDMRPort -> 31103
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] ambeMode -> DMR
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] minTxTimeMS -> 2000
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] gatewayDmrId -> 3107955
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] repeaterID -> 310795501
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] txTg -> 31075
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] txTs -> 2
M: 2019-09-15 01:50:06.282 Setting [AMBE_AUDIO] colorCode -> 1
M: 2019-09-15 01:50:06.282 Setting [USRP] server -> 127.0.0.1
M: 2019-09-15 01:50:06.282 Setting [USRP] toASLPort -> 32001
M: 2019-09-15 01:50:06.282 Setting [USRP] fromASLPort -> 34001
M: 2019-09-15 01:50:06.282 Setting [USRP] aslAudio -> AUDIO_UNITY
M: 2019-09-15 01:50:06.282 Setting [USRP] agcGain -> -20
M: 2019-09-15 01:50:06.282 Setting [USRP] dmrAudio -> AUDIO_UNITY
M: 2019-09-15 01:50:06.282 Setting [USRP] dmrGain -> 0.35
M: 2019-09-15 01:50:06.282 Setting [DV3000] server -> /dev/ttyUSB0
M: 2019-09-15 01:50:06.282 Setting [DV3000] port -> 460800
M: 2019-09-15 01:50:06.282 Setting [DV3000] serial -> true
W: 2019-09-15 01:50:06.282 ioctl reset error
W: 2019-09-15 01:50:06.282 ioctl speed error
W: 2019-09-15 01:50:06.282 ioctl stereo error
W: 2019-09-15 01:50:06.282 ioctl setfmt error
M: 2019-09-15 01:50:06.282 Audio In/Out Device: /dev/null
I: 2019-09-15 01:50:06.282 Open UDP listener on 127.0.0.1:31100
I: 2019-09-15 01:50:06.282 Open USRP on 127.0.0.1:32001
D: 2019-09-15 01:50:06.282 Attempt to  init DV3000 in DMR mode
M: 2019-09-15 01:50:06.282 Connecting to DV3000 hardware......
M: 2019-09-15 01:50:06.294 Begin DV3000 decode
Project 25 IMBE Encoder/Decoder Fixed-Point implementation
Developed by Pavel Yazev E-mail: pyazev@...
Version 1.0 (c) Copyright 2009
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; see the file ``LICENSE'' for details.
I: 2019-09-15 01:50:06.295 Subscriber IDs loaded: 0
I: 2019-09-15 01:50:06.295 Default extended metadata <3107955>
I: 2019-09-15 01:50:06.296 Using hardware AMBE vocoder
I: 2019-09-15 01:50:06.296 Starting Analog_Bridge --> USRP thread
I: 2019-09-15 01:50:06.296 Open UDP listener on 127.0.0.1:34001
I: 2019-09-15 01:50:06.297 Starting USRP --> HB_Bridge thread
--

No more STDOUT after this point. Any other ideas?   This is on a Raspberry Pi 3B+ and I can install other binaries if required.





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