installed Analog reflector on DVSwitch get error


@AndrewVK2HAC
 

when i run ./Analog_Reflector -f Analog_Reflector.json
i get this output with the error:-
21-03-06 23:39:47 Analog_Reflector:
I: 21-03-06 23:39:47 ==
I: 21-03-06 23:39:47 Version: 1.1.15
I: 21-03-06 23:39:47
M: 21-03-06 23:39:47 Server running in Production mode
I: 21-03-06 23:39:47 SSL Certificate for these addresses: DNS:localhost, DNS:dvswitch-server, IP Address:192.168.123.88, IP Address:127.0.0.1, IP Address:180.150.xx.xxx
I: 21-03-06 23:39:47 SSL Certificate expires: Mar  6 11:13:26 2022 GMT
I: 21-03-06 23:39:47 WebSocket server ready on port 443 ...
I: 21-03-06 23:39:47 New AllStar node for 1999
I: 21-03-06 23:39:47 ACL for AllStar Node 1999 is: Allow Transmit, Allow Tune
I: 21-03-06 23:39:47 New bridge for DMR
I: 21-03-06 23:39:47 ACL for DMR Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for D-Star
I: 21-03-06 23:39:47 ACL for D-STAR Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for NXDN
I: 21-03-06 23:39:47 ACL for NXDN Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for P25
I: 21-03-06 23:39:47 ACL for P25 Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for YSF
I: 21-03-06 23:39:47 ACL for YSF Bridge is: Allow Transmit, Deny Tune
F: 21-03-06 23:39:47 Fatal USRP Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data


Steve N4IRS
 

Please post your Analog_Reflector.json and Analog_Bridge.ini

On 3/6/21 7:46 AM, newsletters@... wrote:
when i run ./Analog_Reflector -f Analog_Reflector.json
i get this output with the error:-
21-03-06 23:39:47 Analog_Reflector:
I: 21-03-06 23:39:47 ==
I: 21-03-06 23:39:47 Version: 1.1.15
I: 21-03-06 23:39:47
M: 21-03-06 23:39:47 Server running in Production mode
I: 21-03-06 23:39:47 SSL Certificate for these addresses: DNS:localhost, DNS:dvswitch-server, IP Address:192.168.123.88, IP Address:127.0.0.1, IP Address:180.150.xx.xxx
I: 21-03-06 23:39:47 SSL Certificate expires: Mar  6 11:13:26 2022 GMT
I: 21-03-06 23:39:47 WebSocket server ready on port 443 ...
I: 21-03-06 23:39:47 New AllStar node for 1999
I: 21-03-06 23:39:47 ACL for AllStar Node 1999 is: Allow Transmit, Allow Tune
I: 21-03-06 23:39:47 New bridge for DMR
I: 21-03-06 23:39:47 ACL for DMR Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for D-Star
I: 21-03-06 23:39:47 ACL for D-STAR Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for NXDN
I: 21-03-06 23:39:47 ACL for NXDN Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for P25
I: 21-03-06 23:39:47 ACL for P25 Bridge is: Allow Transmit, Deny Tune
I: 21-03-06 23:39:47 New bridge for YSF
I: 21-03-06 23:39:47 ACL for YSF Bridge is: Allow Transmit, Deny Tune
F: 21-03-06 23:39:47 Fatal USRP Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data


@AndrewVK2HAC
 
Edited

On Sat, Mar 6, 2021 at 11:49 PM, Steve N4IRS wrote:
Analog_Reflector.json
 "nodeName":"DVSwitch",
  "dmrID":"5050899",
  "abAddress": "127.0.0.1",
  "usrpTxPort": "12345",
  "usrpRxPort": "12345",
  "mobilePort": "50011",
  "wsPort": "443",
  "keyDir": "./ssl/",
  "siteroot": "./arRoot",
  "logFileName": "/var/log/dvswitch/Analog_Reflector.log",
  "logLevel": "2",
  "disallowUnknownClients": false,
  "brokerURL": "mqtt://localhost:1883",
  "rightsMask": "4",
  "autoMute": true,
  "clientModes": ["DMR", "STFU", "DSTAR|D-Star", "NXDN", "P25", "YSF", "ASL|AllStar", "Intercom"],
  "bridges": {
    "asl": [
      {"node" : "1999", "address" : "127.0.0.1", "rxPort" : "34001", "txPort" : "32001", "rights" : 3, "amiUserName" : "admin", "amiSecret" : "llcgi"}
    ],
    "ab" : [
      {"name" : "DMR",    "address" : "127.0.0.1", "rxPort" : "51100", "txPort" : "51103", "rights" : 1},
      {"name" : "D-Star", "address" : "127.0.0.1", "rxPort" : "52100", "txPort" : "52103", "rights" : 1},
      {"name" : "NXDN",   "address" : "127.0.0.1", "rxPort" : "53100", "txPort" : "53103", "rights" : 1},
      {"name" : "P25",    "address" : "127.0.0.1", "rxPort" : "54100", "txPort" : "54103", "rights" : 1},
      {"name" : "YSF",    "address" : "127.0.0.1", "rxPort" : "55100", "txPort" : "55103", "rights" : 1}
    ]
  }
}




Analog_Bridge.ini

  GNU nano 3.2                                                                          Analog_Bridge.ini

; Analog_Bridge configuration file.
;   This file should be placed in either /etc or it can be
;   supplied as a path on the Analog_Bridge command line.

; The best way to think of this file is that there are two main sections, the USRP (analog audio) and
; AMBE_AUDIO (compressed audio).  Analog_Bridge will take everything sent to the USRP port and
; encode it for transmission on the AMBE_AUDIO port.  The encoder will use the format defined in ambeMode.
; As you might expect, the reverse direction is defined too.

; Analog_Bridge supports include files. More on this later...
include = dvsm.macro
; include = asl.macro

; General Section describes settings for Analog_Bridge itself.
[GENERAL]
logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

; Metadata management
exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)
transferRootDir = /tmp                  ; Export database files to USRP partner
subscriberFile = /var/lib/dvswitch/subscriber_ids.csv   ; DMR ID to callsign lookup data

; General vocoder setup information
decoderFallBack = true                  ; Allow software AMBE decoding if a hardware decoder is not found
useEmulator = true                      ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)
emulatorAddress = 127.0.0.1:2470        ; IP address and port of the md380 server

pcmPort = 2222                          ; UDP port to send to the WebProxy

; Information for xx_Bridge (Where xx is MMDVM, Quantar, HB, IPSC)
[AMBE_AUDIO]
address = 127.0.0.1                     ; IP address of xx_Bridge
txPort = 31103                          ; Transmit TLV frames to partner on this port
rxPort = 31100                          ; Listen for TLV frames from partner on this port
ambeMode = DMR                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)
minTxTimeMS = 2500                      ; Analog -> Digital Minimum time in MS for hang delay (0-10000)

; The metadata below is used when ASL is the source since it does not have any concept of digital modes
gatewayDmrId = 5050899                  ; ID to use when transmitting from Analog_Bridge 7 digit ID
repeaterID = 505089911                  ; ID of source repeater 7 digit ID plus 2 digit SSID
txTg = 9                                ; TG to use for all frames sent from Analog_Bridge -> xx_Bridge
txTs = 2                                ; Slot to use for frames sent from Analog_Bridge -> xx_Bridge
colorCode = 1                           ; Color Code to assign DMR frames

; Information for USRP channel driver.  This interface uses PCM to transfer audio information
; There are two typical configurations, ASL and Transcode.  ASL (AllstarLink) is for analog clients connected
; to a digital network.  Transcode is when Analog_Bridge actually points its PCM interfaces back at itself,
; causing a TLV <-- (pcm <--> pcm) --> TLV type of architecture.
;   When using ASL, this matches the rpt.conf ASL file with a setting like:
;   rxchannel = usrp/127.0.0.1:34001:32001
;   When Transcoding, make two ini files and set txPort equal to the other instance rxPort (crossover).  Launch
;   each instance with its own ini file.
[USRP]
address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)
txPort = 50011                          ; Transmit USRP frames on this port
rxPort = 50011                          ; Listen for USRP frames on this port
usrpAudio = AUDIO_UNITY                 ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)
usrpGain = 1.10                         ; Gain factor when usrpAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)
usrpAGC = -20,10,100                    ; Set the agc threshold (db), slope (db) and decay (ms)
tlvAudio = AUDIO_UNITY                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)
tlvGain = 0.35                          ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)

[MACROS]


; Where the macros are
; xxxx=yyyy
; xxxx is the dial string to match
; yyyy is the command line to execute

; xxxx must be preceded by a *
; xxxx can be any string (alphanumeric)
; yyyy is the command to execute
; yyyy will replace xxxx in the dial string
; arguments follow the macro name with a # delimiter

; For example using macro "5678" above would look like:
; *5678#9876

; Which would invoke:
; echo 9876

; Information for DV3000 hardware decoder
;   There are two configuration modes: IP (AMBEServer) and serial (direct connect hardware)
;   Use top server and port if using AMBEServer
;   Use bottom server/port and serial = true if using the DV3000u (thumbdv)
;   Did you run AMBETest4.py before using this?
[DV3000]
; address = 127.0.0.1                 ; IP address of AMBEServer
; rxPort = 2460                       ; Port of AMBEServer
; address = /dev/ttyUSB0              ; Device of DV3000U on this machine
; baud = 460800                       ; Baud rate of the dongle (230400 or 460800)
; serial = true                       ; Use serial=true for direct connect or serial=false for AMBEServer


Steve N4IRS
 

Please show complete Analog_Bridge.ini

On 3/6/21 8:19 AM, newsletters@... wrote:
On Sat, Mar 6, 2021 at 11:49 PM, Steve N4IRS wrote:
Analog_Reflector.json
 "nodeName":"DVSwitch",
  "dmrID":"5050899",
  "abAddress": "127.0.0.1",
  "usrpTxPort": "12345",
  "usrpRxPort": "12345",
  "mobilePort": "50011",
  "wsPort": "443",
  "keyDir": "./ssl/",
  "siteroot": "./arRoot",
  "logFileName": "/var/log/dvswitch/Analog_Reflector.log",
  "logLevel": "2",
  "disallowUnknownClients": false,
  "brokerURL": "mqtt://localhost:1883",
  "rightsMask": "4",
  "autoMute": true,
  "clientModes": ["DMR", "STFU", "DSTAR|D-Star", "NXDN", "P25", "YSF", "ASL|AllStar", "Intercom"],
  "bridges": {
    "asl": [
      {"node" : "1999", "address" : "127.0.0.1", "rxPort" : "34001", "txPort" : "32001", "rights" : 3, "amiUserName" : "admin", "amiSecret" : "llcgi"}
    ],
    "ab" : [
      {"name" : "DMR",    "address" : "127.0.0.1", "rxPort" : "51100", "txPort" : "51103", "rights" : 1},
      {"name" : "D-Star", "address" : "127.0.0.1", "rxPort" : "52100", "txPort" : "52103", "rights" : 1},
      {"name" : "NXDN",   "address" : "127.0.0.1", "rxPort" : "53100", "txPort" : "53103", "rights" : 1},
      {"name" : "P25",    "address" : "127.0.0.1", "rxPort" : "54100", "txPort" : "54103", "rights" : 1},
      {"name" : "YSF",    "address" : "127.0.0.1", "rxPort" : "55100", "txPort" : "55103", "rights" : 1}
    ]
  }
}




Analog_Bridge.ini

  GNU nano 3.2                                                                          Analog_Bridge.ini

; Analog_Bridge configuration file.
;   This file should be placed in either /etc or it can be
;   supplied as a path on the Analog_Bridge command line.

; The best way to think of this file is that there are two main sections, the USRP (analog audio) and
; AMBE_AUDIO (compressed audio).  Analog_Bridge will take everything sent to the USRP port and
; encode it for transmission on the AMBE_AUDIO port.  The encoder will use the format defined in ambeMode.
; As you might expect, the reverse direction is defined too.

; Analog_Bridge supports include files. More on this later...
include = dvsm.macro
; include = asl.macro

; General Section describes settings for Analog_Bridge itself.
[GENERAL]
logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

; Metadata management
exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)
transferRootDir = /tmp                  ; Export database files to USRP partner
subscriberFile = /var/lib/dvswitch/subscriber_ids.csv   ; DMR ID to callsign lookup data

; General vocoder setup information
decoderFallBack = true                  ; Allow software AMBE decoding if a hardware decoder is not found
useEmulator = true                      ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)
emulatorAddress = 127.0.0.1:2470        ; IP address and port of the md380 server

pcmPort = 2222                          ; UDP port to send to the WebProxy

; Information for xx_Bridge (Where xx is MMDVM, Quantar, HB, IPSC)
[AMBE_AUDIO]
address = 127.0.0.1                     ; IP address of xx_Bridge
txPort = 31103                          ; Transmit TLV frames to partner on this port
rxPort = 31100                          ; Listen for TLV frames from partner on this port
ambeMode = DMR                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)
minTxTimeMS = 2500                      ; Analog -> Digital Minimum time in MS for hang delay (0-10000)

^G Get Help      ^O Write Out     ^W Where Is      ^K Cut Text      ^J Justify       ^C Cur Pos       M-U Undo         M-A Mark Text    M-] To Bracket   M-Q Previous     ^B Back
^X Exit          ^R Read File     ^\ Replace       ^U Uncut Text    ^T To Spell      ^_ Go To Line    M-E Redo         M-6 Copy Text    ^Q Where Was     M-W Next         ^F Forward


@AndrewVK2HAC
 

sorry yes i have edited the above with the complete file.


Steve N4IRS
 

In Analog_Bridge.ini

Change:
[USRP]
txPort = 50011                          ; Transmit USRP frames on this port
rxPort = 50011                          ; Listen for USRP frames on this port

To:
[USRP]
txPort = 12345                          ; Transmit USRP frames on this port
rxPort = 12345                          ; Listen for USRP frames on this port

Restart Analog_Bridge and retest


On 3/6/21 8:38 AM, newsletters@... wrote:
sorry yes i have edited the above with the complete file.


Steve N4IRS
 

Can I assume that it's working now?

On 3/6/21 8:38 AM, newsletters@... wrote:
sorry yes i have edited the above with the complete file.


@AndrewVK2HAC
 

sorry for the delay was asleep here in Australia.
No not workinh.
dvswitch@dvswitch-server:/opt/Analog_Reflector $ sudo ./Analog_Reflector -f Analog_Reflector.json
I: 21-03-07 08:20:23 Analog_Reflector:
I: 21-03-07 08:20:23 ==
I: 21-03-07 08:20:23 Version: 1.1.15
I: 21-03-07 08:20:23
M: 21-03-07 08:20:23 Server running in Production mode
I: 21-03-07 08:20:23 SSL Certificate for these addresses: DNS:localhost, DNS:dvswitch-server, IP Address:192.168.123.88, IP Address:127.0.0.1, IP Address:180.150.73.223
I: 21-03-07 08:20:23 SSL Certificate expires: Mar  6 11:13:26 2022 GMT
I: 21-03-07 08:20:23 WebSocket server ready on port 443 ...
I: 21-03-07 08:20:23 New AllStar node for 1999
I: 21-03-07 08:20:23 ACL for AllStar Node 1999 is: Allow Transmit, Allow Tune
I: 21-03-07 08:20:23 New bridge for DMR
I: 21-03-07 08:20:23 ACL for DMR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 08:20:23 New bridge for D-Star
I: 21-03-07 08:20:23 ACL for D-STAR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 08:20:23 New bridge for NXDN
I: 21-03-07 08:20:23 ACL for NXDN Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 08:20:23 New bridge for P25
I: 21-03-07 08:20:23 ACL for P25 Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 08:20:23 New bridge for YSF
I: 21-03-07 08:20:23 ACL for YSF Bridge is: Allow Transmit, Deny Tune
F: 21-03-07 08:20:23 Fatal USRP Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data

also I need to run most of these commands as "sudo" for the access needed. could this have an impact?


@AndrewVK2HAC
 

service is running OK.
dvswitch@dvswitch-server:/opt/Analog_Reflector $ sudo systemctl status analog_reflector.service
● analog_reflector.service - Analog Reflector Service
   Loaded: loaded (/lib/systemd/system/analog_reflector.service; enabled; vendor preset: enabled)
   Active: active (running) since Sun 2021-03-07 08:19:45 AEDT; 3min 48s ago
  Process: 3297 ExecStartPre=/bin/sh -c echo "Starting Analog Reflector: [`date +%T.%3N`]" >> /var/log/netcheck (code=exited, status=0/SUCCESS)
 Main PID: 3300 (Analog_Reflecto)
    Tasks: 10 (limit: 2062)
   CGroup: /system.slice/analog_reflector.service
           └─3300 /opt/Analog_Reflector/Analog_Reflector

Mar 07 08:19:45 dvswitch-server systemd[1]: Starting Analog Reflector Service...
Mar 07 08:19:45 dvswitch-server systemd[1]: Started Analog Reflector Service.
dvswitch@dvswitch-server:/opt/Analog_Reflector $


@AndrewVK2HAC
 

When i run the command "/opt/Analog_Reflector $ ./Analog_Reflector -f Analog_Reflector.json" without Sudo i get:-

dvswitch@dvswitch-server:/opt/Analog_Reflector $ ./Analog_Reflector -f Analog_Reflector.json
I: 21-03-07 08:36:01 Analog_Reflector:
I: 21-03-07 08:36:01 ==
I: 21-03-07 08:36:01 Version: 1.1.15
I: 21-03-07 08:36:01
M: 21-03-07 08:36:01 Server running in Production mode
F: 21-03-07 08:36:01 Fatal error, SSL key and cert files were not found: Error: EACCES: permission denied, open './ssl/dvswitch.key'


Steve N4IRS
 

When I work, I use sudo -s so I do not have to run each command with sudo

On 3/6/21 4:37 PM, newsletters@... wrote:
When i run the command "/opt/Analog_Reflector $ ./Analog_Reflector -f Analog_Reflector.json" without Sudo i get:-

dvswitch@dvswitch-server:/opt/Analog_Reflector $ ./Analog_Reflector -f Analog_Reflector.json
I: 21-03-07 08:36:01 Analog_Reflector:
I: 21-03-07 08:36:01 ==
I: 21-03-07 08:36:01 Version: 1.1.15
I: 21-03-07 08:36:01
M: 21-03-07 08:36:01 Server running in Production mode
F: 21-03-07 08:36:01 Fatal error, SSL key and cert files were not found: Error: EACCES: permission denied, open './ssl/dvswitch.key'


@AndrewVK2HAC
 
Edited

I have it working now. but the error is still there. I can work on DMR not yet YSF. Yeah,
yes the port numbers were not aligned ini & the Json files. so thank for the pointers.



now to get the iPhone working.


@AndrewVK2HAC
 

I still have this error??

DMR works fine. Any tips?

/home/dvswitch# ./Analog_Reflector -f Analog_Reflector.json
bash: ./Analog_Reflector: No such file or directory
root@dvswitch-server:/home/dvswitch# cd /opt/Analog_Reflector
root@dvswitch-server:/opt/Analog_Reflector# ./Analog_Reflector -f Analog_Reflector.json
I: 21-03-07 14:31:44 Analog_Reflector:
I: 21-03-07 14:31:44 ==
I: 21-03-07 14:31:44 Version: 1.1.15
I: 21-03-07 14:31:44
M: 21-03-07 14:31:44 Server running in Production mode
I: 21-03-07 14:31:44 SSL Certificate for these addresses: DNS:localhost, DNS:dvswitch-server, IP Address:192.168.123.88, IP Address:127.0.0.1, IP Address:180.150.73.223
I: 21-03-07 14:31:44 SSL Certificate expires: Mar  6 11:13:26 2022 GMT
I: 21-03-07 14:31:44 WebSocket server ready on port 443 ...
I: 21-03-07 14:31:44 New AllStar node for 1999
I: 21-03-07 14:31:44 ACL for AllStar Node 1999 is: Allow Transmit, Allow Tune
I: 21-03-07 14:31:44 New bridge for DMR
I: 21-03-07 14:31:44 ACL for DMR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for D-Star
I: 21-03-07 14:31:44 ACL for D-STAR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for NXDN
I: 21-03-07 14:31:44 ACL for NXDN Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for P25
I: 21-03-07 14:31:44 ACL for P25 Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for YSF
I: 21-03-07 14:31:44 ACL for YSF Bridge is: Allow Transmit, Deny Tune
F: 21-03-07 14:31:44 Fatal USRP Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data


Steve N4IRS
 

Please show me your Analog_Bridge.ini and Analog_Reflector.json

On 3/6/21 10:32 PM, newsletters@... wrote:
I still have this error??

DMR works fine. Any tips?

/home/dvswitch# ./Analog_Reflector -f Analog_Reflector.json
bash: ./Analog_Reflector: No such file or directory
root@dvswitch-server:/home/dvswitch# cd /opt/Analog_Reflector
root@dvswitch-server:/opt/Analog_Reflector# ./Analog_Reflector -f Analog_Reflector.json
I: 21-03-07 14:31:44 Analog_Reflector:
I: 21-03-07 14:31:44 ==
I: 21-03-07 14:31:44 Version: 1.1.15
I: 21-03-07 14:31:44
M: 21-03-07 14:31:44 Server running in Production mode
I: 21-03-07 14:31:44 SSL Certificate for these addresses: DNS:localhost, DNS:dvswitch-server, IP Address:192.168.123.88, IP Address:127.0.0.1, IP Address:180.150.73.223
I: 21-03-07 14:31:44 SSL Certificate expires: Mar  6 11:13:26 2022 GMT
I: 21-03-07 14:31:44 WebSocket server ready on port 443 ...
I: 21-03-07 14:31:44 New AllStar node for 1999
I: 21-03-07 14:31:44 ACL for AllStar Node 1999 is: Allow Transmit, Allow Tune
I: 21-03-07 14:31:44 New bridge for DMR
I: 21-03-07 14:31:44 ACL for DMR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for D-Star
I: 21-03-07 14:31:44 ACL for D-STAR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for NXDN
I: 21-03-07 14:31:44 ACL for NXDN Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for P25
I: 21-03-07 14:31:44 ACL for P25 Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for YSF
I: 21-03-07 14:31:44 ACL for YSF Bridge is: Allow Transmit, Deny Tune
F: 21-03-07 14:31:44 Fatal USRP Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data


Steve N4IRS
 

When you say DMR works fine, is that before you run Analog_Reflector -f Analog_Reflector.json ?

On 3/6/21 10:32 PM, newsletters@... wrote:
I still have this error??

DMR works fine. Any tips?

/home/dvswitch# ./Analog_Reflector -f Analog_Reflector.json
bash: ./Analog_Reflector: No such file or directory
root@dvswitch-server:/home/dvswitch# cd /opt/Analog_Reflector
root@dvswitch-server:/opt/Analog_Reflector# ./Analog_Reflector -f Analog_Reflector.json
I: 21-03-07 14:31:44 Analog_Reflector:
I: 21-03-07 14:31:44 ==
I: 21-03-07 14:31:44 Version: 1.1.15
I: 21-03-07 14:31:44
M: 21-03-07 14:31:44 Server running in Production mode
I: 21-03-07 14:31:44 SSL Certificate for these addresses: DNS:localhost, DNS:dvswitch-server, IP Address:192.168.123.88, IP Address:127.0.0.1, IP Address:180.150.73.223
I: 21-03-07 14:31:44 SSL Certificate expires: Mar  6 11:13:26 2022 GMT
I: 21-03-07 14:31:44 WebSocket server ready on port 443 ...
I: 21-03-07 14:31:44 New AllStar node for 1999
I: 21-03-07 14:31:44 ACL for AllStar Node 1999 is: Allow Transmit, Allow Tune
I: 21-03-07 14:31:44 New bridge for DMR
I: 21-03-07 14:31:44 ACL for DMR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for D-Star
I: 21-03-07 14:31:44 ACL for D-STAR Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for NXDN
I: 21-03-07 14:31:44 ACL for NXDN Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for P25
I: 21-03-07 14:31:44 ACL for P25 Bridge is: Allow Transmit, Deny Tune
I: 21-03-07 14:31:44 New bridge for YSF
I: 21-03-07 14:31:44 ACL for YSF Bridge is: Allow Transmit, Deny Tune
F: 21-03-07 14:31:44 Fatal USRP Error [ERR_SOCKET_CANNOT_SEND]: Unable to send data


@AndrewVK2HAC
 

Yes it is.


Steve N4IRS
 

OK,
So Analog_Reflector is already running in the background (as a service) when you run it again in the foreground, you get a error. You can reboot, then check the log at /var/log/dvswitch/Analog_Reflector.log. You should have no errors.

Steve

On 3/6/21 10:45 PM, newsletters@... wrote:
Yes it is.


@AndrewVK2HAC
 

 "nodeName":"DVSwitch",
  "dmrID":"5050899",
  "abAddress": "127.0.0.1",
  "usrpTxPort": "12345",
  "usrpRxPort": "12345",
  "mobilePort": "50011",
  "wsPort": "443",
  "keyDir": "./ssl/",
  "siteroot": "./arRoot",
  "logFileName": "/var/log/dvswitch/Analog_Reflector.log",
  "logLevel": "2",
  "disallowUnknownClients": false,
  "brokerURL": "mqtt://localhost:1883",
  "rightsMask": "4",
  "autoMute": true,
  "clientModes": ["DMR", "STFU", "DSTAR|D-Star", "NXDN", "P25", "YSF", "ASL|AllStar", "Intercom"],
  "bridges": {
    "asl": [
      {"node" : "1999", "address" : "127.0.0.1", "rxPort" : "34001", "txPort" : "32001", "rights" : 3, "amiUserName" : "admin", "amiSecret" : "llcgi"}
    ],
    "ab" : [
      {"name" : "DMR",    "address" : "127.0.0.1", "rxPort" : "51100", "txPort" : "51103", "rights" : 1},
      {"name" : "D-Star", "address" : "127.0.0.1", "rxPort" : "52100", "txPort" : "52103", "rights" : 1},
      {"name" : "NXDN",   "address" : "127.0.0.1", "rxPort" : "53100", "txPort" : "53103", "rights" : 1},
      {"name" : "P25",    "address" : "127.0.0.1", "rxPort" : "54100", "txPort" : "54103", "rights" : 1},
      {"name" : "YSF",    "address" : "127.0.0.1", "rxPort" : "55100", "txPort" : "55103", "rights" : 1}
    ]
  }
}



; Analog_Bridge configuration file.

;   This file should be placed in either /etc or it can be

;   supplied as a path on the Analog_Bridge command line.

 

; The best way to think of this file is that there are two main sections, the USRP (analog audio) and

; AMBE_AUDIO (compressed audio).  Analog_Bridge will take everything sent to the USRP port and

; encode it for transmission on the AMBE_AUDIO port.  The encoder will use the format defined in ambeMode.

; As you might expect, the reverse direction is defined too.

 

; Analog_Bridge supports include files. More on this later...

include = dvsm.macro

; include = asl.macro

 

; General Section describes settings for Analog_Bridge itself.

[GENERAL]

logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

 

; Metadata management

exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)

transferRootDir = /tmp                  ; Export database files to USRP partner

subscriberFile = /var/lib/dvswitch/subscriber_ids.csv   ; DMR ID to callsign lookup data

 

; General vocoder setup information

decoderFallBack = true                  ; Allow software AMBE decoding if a hardware decoder is not found

useEmulator = true                      ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)

emulatorAddress = 127.0.0.1:2470        ; IP address and port of the md380 server

 

pcmPort = 2222                          ; UDP port to send to the WebProxy

 

; Information for xx_Bridge (Where xx is MMDVM, Quantar, HB, IPSC)

[AMBE_AUDIO]

address = 127.0.0.1                     ; IP address of xx_Bridge

txPort = 31103                          ; Transmit TLV frames to partner on this port

rxPort = 31100                          ; Listen for TLV frames from partner on this port

ambeMode = DMR                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)

minTxTimeMS = 2500                      ; Analog -> Digital Minimum time in MS for hang delay (0-10000)

 

; The metadata below is used when ASL is the source since it does not have any concept of digital modes

gatewayDmrId = 5050899                  ; ID to use when transmitting from Analog_Bridge 7 digit ID

repeaterID = 505089911                  ; ID of source repeater 7 digit ID plus 2 digit SSID

txTg = 9                                ; TG to use for all frames sent from Analog_Bridge -> xx_Bridge

txTs = 2                                ; Slot to use for frames sent from Analog_Bridge -> xx_Bridge

colorCode = 1                           ; Color Code to assign DMR frames

 

; Information for USRP channel driver.  This interface uses PCM to transfer audio information

; There are two typical configurations, ASL and Transcode.  ASL (AllstarLink) is for analog clients connected

; to a digital network.  Transcode is when Analog_Bridge actually points its PCM interfaces back at itself,

; causing a TLV <-- (pcm <--> pcm) --> TLV type of architecture.

;   When using ASL, this matches the rpt.conf ASL file with a setting like:

;   rxchannel = usrp/127.0.0.1:34001:32001

;   When Transcoding, make two ini files and set txPort equal to the other instance rxPort (crossover).  Launch

;   each instance with its own ini file.

 

 

[USRP]

address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)

txPort = 12345                          ; Transmit USRP frames on this port

rxPort = 12345                          ; Listen for USRP frames on this port

usrpAudio = AUDIO_UNITY                 ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)

usrpGain = 1.10                         ; Gain factor when usrpAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)

usrpAGC = -20,10,100                    ; Set the agc threshold (db), slope (db) and decay (ms)

tlvAudio = AUDIO_UNITY                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)

tlvGain = 0.35                          ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)

 

[MACROS]

 

; Where the macros are

; xxxx=yyyy

; xxxx is the dial string to match

; yyyy is the command line to execute

 

; xxxx must be preceded by a *

; xxxx can be any string (alphanumeric)

; yyyy is the command to execute

; yyyy will replace xxxx in the dial string

; arguments follow the macro name with a # delimiter

 

; For example using macro "5678" above would look like:

; *5678#9876

 

; Which would invoke:

; echo 9876

 

; Information for DV3000 hardware decoder

;   There are two configuration modes: IP (AMBEServer) and serial (direct connect hardware)

;   Use top server and port if using AMBEServer

;   Use bottom server/port and serial = true if using the DV3000u (thumbdv)

;   Did you run AMBETest4.py before using this?

[DV3000]

; address = 127.0.0.1                 ; IP address of AMBEServer

; rxPort = 2460                       ; Port of AMBEServer

; address = /dev/ttyUSB0              ; Device of DV3000U on this machine

; baud = 460800                       ; Baud rate of the dongle (230400 or 460800)

; serial = true                       ; Use serial=true for direct connect or serial=false for AMBEServer

 


@AndrewVK2HAC
 

; Analog_Bridge configuration file.

;   This file should be placed in either /etc or it can be

;   supplied as a path on the Analog_Bridge command line.

 

; The best way to think of this file is that there are two main sections, the USRP (analog audio) and

; AMBE_AUDIO (compressed audio).  Analog_Bridge will take everything sent to the USRP port and

; encode it for transmission on the AMBE_AUDIO port.  The encoder will use the format defined in ambeMode.

; As you might expect, the reverse direction is defined too.

 

; Analog_Bridge supports include files. More on this later...

include = dvsm.macro

; include = asl.macro

 

; General Section describes settings for Analog_Bridge itself.

[GENERAL]

logLevel = 2                            ; Show messages and above 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

 

; Metadata management

exportMetadata = true                   ; Export metadata to USRP partner (transcode setups require this)

transferRootDir = /tmp                  ; Export database files to USRP partner

subscriberFile = /var/lib/dvswitch/subscriber_ids.csv   ; DMR ID to callsign lookup data

 

; General vocoder setup information

decoderFallBack = true                  ; Allow software AMBE decoding if a hardware decoder is not found

useEmulator = true                      ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)

emulatorAddress = 127.0.0.1:2470        ; IP address and port of the md380 server

 

pcmPort = 2222                          ; UDP port to send to the WebProxy

 

; Information for xx_Bridge (Where xx is MMDVM, Quantar, HB, IPSC)

[AMBE_AUDIO]

address = 127.0.0.1                     ; IP address of xx_Bridge

txPort = 31103                          ; Transmit TLV frames to partner on this port

rxPort = 31100                          ; Listen for TLV frames from partner on this port

ambeMode = DMR                          ; DMR, DMR_IPSC, DSTAR, NXDN, P25, YSFN, YSFW (encode PCM to this format)

minTxTimeMS = 2500                      ; Analog -> Digital Minimum time in MS for hang delay (0-10000)

 

; The metadata below is used when ASL is the source since it does not have any concept of digital modes

gatewayDmrId = 5050899                  ; ID to use when transmitting from Analog_Bridge 7 digit ID

repeaterID = 505089911                  ; ID of source repeater 7 digit ID plus 2 digit SSID

txTg = 9                                ; TG to use for all frames sent from Analog_Bridge -> xx_Bridge

txTs = 2                                ; Slot to use for frames sent from Analog_Bridge -> xx_Bridge

colorCode = 1                           ; Color Code to assign DMR frames

 

; Information for USRP channel driver.  This interface uses PCM to transfer audio information

; There are two typical configurations, ASL and Transcode.  ASL (AllstarLink) is for analog clients connected

; to a digital network.  Transcode is when Analog_Bridge actually points its PCM interfaces back at itself,

; causing a TLV <-- (pcm <--> pcm) --> TLV type of architecture.

;   When using ASL, this matches the rpt.conf ASL file with a setting like:

;   rxchannel = usrp/127.0.0.1:34001:32001

;   When Transcoding, make two ini files and set txPort equal to the other instance rxPort (crossover).  Launch

;   each instance with its own ini file.

 

 

[USRP]

address = 127.0.0.1                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)

txPort = 12345                          ; Transmit USRP frames on this port

rxPort = 12345                          ; Listen for USRP frames on this port

usrpAudio = AUDIO_UNITY                 ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)

usrpGain = 1.10                         ; Gain factor when usrpAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)

usrpAGC = -20,10,100                    ; Set the agc threshold (db), slope (db) and decay (ms)

tlvAudio = AUDIO_UNITY                  ; Analog -> Digital (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_BPF)

tlvGain = 0.35                          ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)

 

[MACROS]

 

; Where the macros are

; xxxx=yyyy

; xxxx is the dial string to match

; yyyy is the command line to execute

 

; xxxx must be preceded by a *

; xxxx can be any string (alphanumeric)

; yyyy is the command to execute

; yyyy will replace xxxx in the dial string

; arguments follow the macro name with a # delimiter

 

; For example using macro "5678" above would look like:

; *5678#9876

 

; Which would invoke:

; echo 9876

 

; Information for DV3000 hardware decoder

;   There are two configuration modes: IP (AMBEServer) and serial (direct connect hardware)

;   Use top server and port if using AMBEServer

;   Use bottom server/port and serial = true if using the DV3000u (thumbdv)

;   Did you run AMBETest4.py before using this?

[DV3000]

; address = 127.0.0.1                 ; IP address of AMBEServer

; rxPort = 2460                       ; Port of AMBEServer

; address = /dev/ttyUSB0              ; Device of DV3000U on this machine

; baud = 460800                       ; Baud rate of the dongle (230400 or 460800)

; serial = true                       ; Use serial=true for direct connect or serial=false for AMBEServer



Analog_Reflector.json

{

  "nodeName":"DVSwitch",

  "dmrID":"5050899",

  "abAddress": "127.0.0.1",

  "usrpTxPort": "12345",

  "usrpRxPort": "12345",

  "mobilePort": "50011",

  "wsPort": "443",

  "keyDir": "./ssl/",

  "siteroot": "./arRoot",

  "logFileName": "/var/log/dvswitch/Analog_Reflector.log",

  "logLevel": "2",

  "disallowUnknownClients": false,

  "brokerURL": "mqtt://localhost:1883",

  "rightsMask": "4",

  "autoMute": true,

  "clientModes": ["DMR", "STFU", "DSTAR|D-Star", "NXDN", "P25", "YSF", "ASL|AllStar", "Intercom"],

  "bridges": {

    "asl": [

      {"node" : "1999", "address" : "127.0.0.1", "rxPort" : "34001", "txPort" : "32001", "rights" : 3, "amiUserName" : "admin", "amiSecret" : "llcgi"}

    ],

    "ab" : [

      {"name" : "DMR",    "address" : "127.0.0.1", "rxPort" : "51100", "txPort" : "51103", "rights" : 1},

      {"name" : "D-Star", "address" : "127.0.0.1", "rxPort" : "52100", "txPort" : "52103", "rights" : 1},

      {"name" : "NXDN",   "address" : "127.0.0.1", "rxPort" : "53100", "txPort" : "53103", "rights" : 1},

      {"name" : "P25",    "address" : "127.0.0.1", "rxPort" : "54100", "txPort" : "54103", "rights" : 1},

      {"name" : "YSF",    "address" : "127.0.0.1", "rxPort" : "55100", "txPort" : "55103", "rights" : 1}

    ]

  }

}


@AndrewVK2HAC
 

On Sun, Mar 7, 2021 at 02:47 PM, Steve N4IRS wrote:
/var/log/dvswitch/Analog_Reflector.log.
dvswitch@dvswitch-server:/var/log/dvswitch $ cat Analog_Reflector.log | grep E:
E: 21-03-07 00:06:21 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:06:21 Turning off tune rights for AllStar Node 1999
E: 21-03-07 00:08:51 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:08:51 Turning off tune rights for AllStar Node 1999
E: 21-03-07 00:12:53 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:12:53 Turning off tune rights for AllStar Node 1999
E: 21-03-07 00:14:05 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:14:05 Turning off tune rights for AllStar Node 1999
E: 21-03-07 00:36:21 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:36:21 Turning off tune rights for AllStar Node 1999
E: 21-03-07 00:45:54 MQTT error! Error: connect ECONNREFUSED 127.0.0.1:1883
E: 21-03-07 00:45:54 MQTT terminating the client (non-fatal)
E: 21-03-07 00:51:45 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:51:45 Turning off tune rights for AllStar Node 1999
E: 21-03-07 00:53:04 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 00:53:04 Turning off tune rights for AllStar Node 1999
E: 21-03-07 08:19:32 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 08:19:32 Turning off tune rights for AllStar Node 1999
E: 21-03-07 08:19:47 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 08:19:47 Turning off tune rights for AllStar Node 1999
E: 21-03-07 08:33:06 MQTT error! Error: connect ECONNREFUSED 127.0.0.1:1883
E: 21-03-07 08:33:06 MQTT terminating the client (non-fatal)
E: 21-03-07 08:34:45 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 08:34:45 Turning off tune rights for AllStar Node 1999
E: 21-03-07 08:44:40 MQTT error! Error: connect ECONNREFUSED 127.0.0.1:1883
E: 21-03-07 08:44:40 MQTT terminating the client (non-fatal)
E: 21-03-07 08:45:01 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 08:45:01 Turning off tune rights for AllStar Node 1999
E: 21-03-07 09:33:12 MQTT error! Error: connect ECONNREFUSED 127.0.0.1:1883
E: 21-03-07 09:33:12 MQTT terminating the client (non-fatal)
E: 21-03-07 09:33:35 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 09:33:35 Turning off tune rights for AllStar Node 1999
E: 21-03-07 14:17:21 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 14:17:21 Turning off tune rights for AllStar Node 1999
E: 21-03-07 14:57:52 MQTT error! Error: connect ECONNREFUSED 127.0.0.1:1883
E: 21-03-07 14:57:52 MQTT terminating the client (non-fatal)
E: 21-03-07 14:58:13 AMI Error: connect ECONNREFUSED 127.0.0.1:5038
E: 21-03-07 14:58:13 Turning off tune rights for AllStar Node 1999
dvswitch@dvswitch-server:/var/log/dvswitch $