Re: Analog_Bridge not outputting to STDOUT or STDERR?


Steve N4IRS
 

root@dvswitch-server:/opt/Analog_Bridge# uname -a
Linux dvswitch-server 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux

root@dvswitch-server:/opt/Analog_Bridge# wget https://github.com/DVSwitch/Analog_Bridge/raw/master/bin/Analog_Bridge.armhf
--2020-09-12 14:17:49--  https://github.com/DVSwitch/Analog_Bridge/raw/master/bin/Analog_Bridge.armhf
Resolving github.com (github.com)... 140.82.114.3
Connecting to github.com (github.com)|140.82.114.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/DVSwitch/Analog_Bridge/master/bin/Analog_Bridge.armhf [following]
--2020-09-12 14:17:50--  https://raw.githubusercontent.com/DVSwitch/Analog_Bridge/master/bin/Analog_Bridge.armhf
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 199.232.0.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.comroot@dvswitch-server:/opt/Analog_Bridge# uname -a
Linux dvswitch-server 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux
)|199.232.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 486128 (475K) [application/octet-stream]
Saving to: ‘Analog_Bridge.armhf’

Analog_Bridge.armhf                                         100%[=========================================================================================================================================>] 474.73K  --.-KB/s    in 0.1s   

2020-09-12 14:17:50 (4.39 MB/s) - ‘Analog_Bridge.armhf’ saved [486128/486128]

root@dvswitch-server:/opt/Analog_Bridge# mv Analog_Bridge.armhf Analog_Bridge
root@dvswitch-server:/opt/Analog_Bridge# chmod +x Analog_Bridge
root@dvswitch-server:/opt/Analog_Bridge# ./Analog_Bridge -v
Analog_Bridge version 1.5.9
root@dvswitch-server:/opt/Analog_Bridge# ./Analog_Bridge Analog_Bridge.ini >stdout.log 2>stderror.log
^C
root@dvswitch-server:/opt/Analog_Bridge# more stdout.log
I: 2020-09-12 18:18:57.053 Analog_Bridge Version 1.5.9 Fri  4 Sep 22:56:26 UTC 2020
I: 2020-09-12 18:18:57.054 Copyright (C) 2018, 2019, 2020 DVSwitch, INAD.
I: 2020-09-12 18:18:57.054 Created by Mike N4IRR and Steve N4IRSroot@dvswitch-server:/opt/Analog_Bridge# uname -a
Linux dvswitch-server 5.4.51-v7+ #1333 SMP Mon Aug 10 16:45:19 BST 2020 armv7l GNU/Linux

I: 2020-09-12 18:18:57.054 Analog_Bridge comes with ABSOLUTELY NO WARRANTY
I: 2020-09-12 18:18:57.054
I: 2020-09-12 18:18:57.054 This software is for use on amateur radio networks only,
I: 2020-09-12 18:18:57.054 it is to be used for educational purposes only. Its use on
I: 2020-09-12 18:18:57.054 commercial networks is strictly prohibited.
I: 2020-09-12 18:18:57.054
I: 2020-09-12 18:18:57.054 Analog_Bridge is starting
M: 2020-09-12 18:18:57.054 Setting [MACROS] DMR -> /opt/MMDVM_Bridge/dvswitch.sh mode DMR
M: 2020-09-12 18:18:57.054 Setting [MACROS] DSTAR -> /opt/MMDVM_Bridge/dvswitch.sh mode DSTAR
M: 2020-09-12 18:18:57.055 Setting [MACROS] NXDN -> /opt/MMDVM_Bridge/dvswitch.sh mode NXDN
M: 2020-09-12 18:18:57.055 Setting [MACROS] P25 -> /opt/MMDVM_Bridge/dvswitch.sh mode P25
M: 2020-09-12 18:18:57.055 Setting [MACROS] YSF -> /opt/MMDVM_Bridge/dvswitch.sh mode YSF
M: 2020-09-12 18:18:57.055 Setting [MACROS] dbupdate -> /opt/MMDVM_Bridge/dvswitch.sh collectProcessPushDataFiles
M: 2020-09-12 18:18:57.055 Setting [MACROS] 9876 -> /opt/Analog_Bridge/parrot.sh
M: 2020-09-12 18:18:57.055 Setting [] include -> dvsm.macro
M: 2020-09-12 18:18:57.055 Setting [GENERAL] logLevel -> 2
M: 2020-09-12 18:18:57.055 Setting [GENERAL] exportMetadata -> true
M: 2020-09-12 18:18:57.055 Setting [GENERAL] transferRootDir -> /tmp
M: 2020-09-12 18:18:57.055 Setting [GENERAL] subscriberFile -> /var/lib/dvswitch/subscriber_ids.csv
M: 2020-09-12 18:18:57.055 Setting [GENERAL] decoderFallBack -> true
M: 2020-09-12 18:18:57.055 Setting [GENERAL] useEmulator -> true
M: 2020-09-12 18:18:57.055 Setting [GENERAL] emulatorAddress -> 127.0.0.1:2470
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] address -> 127.0.0.1
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] txPort -> 31103
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] rxPort -> 31100
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] ambeMode -> DMR
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] minTxTimeMS -> 2500
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] gatewayDmrId -> 3112138
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] repeaterID -> 311213811
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] txTg -> 9
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] txTs -> 2
M: 2020-09-12 18:18:57.055 Setting [AMBE_AUDIO] colorCode -> 1
M: 2020-09-12 18:18:57.056 Setting [USRP] address -> 127.0.0.1
M: 2020-09-12 18:18:57.056 Setting [USRP] txPort -> 54321
M: 2020-09-12 18:18:57.056 Setting [USRP] rxPort -> 54321
M: 2020-09-12 18:18:57.056 Setting [USRP] usrpAudio -> AUDIO_UNITY
M: 2020-09-12 18:18:57.056 Setting [USRP] usrpGain -> 1.10
M: 2020-09-12 18:18:57.056 Setting [USRP] usrpAGC -> -20,10,100
M: 2020-09-12 18:18:57.056 Setting [USRP] tlvAudio -> AUDIO_UNITY
M: 2020-09-12 18:18:57.056 Setting [USRP] tlvGain -> 0.35
I: 2020-09-12 18:18:57.056 Open UDP listener on 127.0.0.1:31100
I: 2020-09-12 18:18:57.056 Open USRP on 127.0.0.1:54321
M: 2020-09-12 18:18:57.056 Connecting to DV3000 hardware......
W: 2020-09-12 18:18:57.147 DV3000 did not reset at 127.0.0.1:2460
W: 2020-09-12 18:18:57.147 DV3000 not found at 127.0.0.1:2460 (Reset failed)
I: 2020-09-12 18:18:58.019 Subscriber IDs loaded: 172620
I: 2020-09-12 18:18:58.019 Default extended metadata <N4IRS>
I: 2020-09-12 18:18:58.019 Connecting to emulator on host 127.0.0.1:2470
W: 2020-09-12 18:18:58.019 Using software MBE decoder version 1.2.3
W: 2020-09-12 18:18:58.019 Using software OP25 IMBE/AMBE vocoder
W: 2020-09-12 18:18:58.020 WARNING, USRP can not have same ports (54321) defined for local network interface.  Using 169.254.42.42
I: 2020-09-12 18:18:58.020 Sending to USRP clients at 169.254.42.42 on port(s) 54321
I: 2020-09-12 18:18:58.020 Starting TLV --> Analog_Bridge (decoder) --> USRP thread
I: 2020-09-12 18:18:58.020 Starting USRP --> Analog_Bridge (encoder) -> TLV thread
root@dvswitch-server:/opt/Analog_Bridge# more stderror.log
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.

root@dvswitch-server:/opt/Analog_Bridge#



On 9/12/20 12:22 PM, Matthew 2E0SIP wrote:

Hi Steve, 

Thanks for checking. I think I'm still missing something. 

Do you get the same behaviour on the latest binary from the repo and supplied Analog_Bridge.ini?

If I do the following on a Pi running Raspbian (No docker) I still get an empty stdout.log, but if I run it without redirecting the output I see it in the console -

git clone https://github.com/DVSwitch/Analog_Bridge.git
cd Analog_Bridge/
./bin/Analog_Bridge.armhf Analog_Bridge.ini >stdout.log 2>stderr.log 

Thanks


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