Re: ASL < - > DSTAR

Ryan Collier

op25 vocoder sounds a lot better then my thumbdv


Ryan (KB8PMY)
KD8TUZ Hamilton Wireless Radio Club

On Mon, Jan 18, 2021 at 9:33 PM Ryan Collier <kb8pmy@...> wrote:
Does it matter which AMBEServer I am running?


Ryan (KB8PMY)
KD8TUZ Hamilton Wireless Radio Club

On Mon, Jan 18, 2021 at 9:32 PM Ryan Collier <kb8pmy@...> wrote:
Okay Steve,

I reloaded everything to default. I am getting this now. Which is a good sign.
M: 2021-01-19 02:12:26.829 D-Star, received network header from KB8PMY P/6017 to CQCQCQ  
M: 2021-01-19 02:12:29.553 D-Star, received network end of transmission, 2.7 seconds, 0% packet loss, BER: 0.0%

So with this I get no audio the Analog. But I get analog to digital.
It I put the gateway to the port of repeater 2. I get this error.
M: 2021-01-19 02:11:01.953 D-Star packet received from an invalid source, A902000A != A902000A and/or 20028 != 20010
The correct reading above this one.  to get it to work. Gateway is 20010 and local address is 20028

ip address 144 is where my asterisk and the dvswitch

Here is MMDVM_Bridge.ini


Location=Hamilton, Ohio
Description=Dstar to ASL

# Logging levels, 0=No logging, 1=Debug, 2=Message, 3=Info, 4=Warning, 5=Error, 6=Fatal

[DMR Id Lookup]

[NXDN Id Lookup]




[System Fusion]



[D-Star Network]

[DMR Network]
# for DMR+ see
# for XLX the syntax is: Options=XLX:4009
# Options=

[System Fusion Network]

[P25 Network]

[NXDN Network]

Here is 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.
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 = false                  ; Allow software AMBE decoding if a hardware decoder is not found
useEmulator = true                      ; Use the MD380 AMBE emulator for AMBE72 (DMR/YSFN/NXDN)
emulatorAddress =        ; 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)
address =                     ; IP address of xx_Bridge
txPort = 32103                          ; Transmit TLV frames to partner on this port
rxPort = 32100                          ; Listen for TLV frames from partner on this port
ambeMode = DSTAR                        ; 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 = 1139698                  ; ID to use when transmitting from Analog_Bridge 7 digit ID
repeaterID = 113969899                  ; ID of source repeater 7 digit ID plus 2 digit SSID
txTg = 2                               ; 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/
;   When Transcoding, make two ini files and set txPort equal to the other instance rxPort (crossover).  Launch
;   each instance with its own ini file.
address =                     ; IP address of USRP partner (Allstar/Asterisk or another Analog_Bridge)
txPort = 32001                          ; Transmit USRP frames on this port
rxPort = 34001                          ; Listen for USRP frames on this port
usrpAudio = AUDIO_UNITY                ; Digital -> Analog (AUDIO_UNITY, AUDIO_USE_GAIN, AUDIO_USE_AGC)
usrpGain = 0.75                        ; 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.50                          ; Gain factor when tlvAudio = AUDIO_USE_GAIN (0.0 to 5.0) (1.0 = AUDIO_UNITY)


; 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 before using this?
address =               ; 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

Audio is still bad. I am connected to 27539. I am confused.


Ryan (KB8PMY)
KD8TUZ Hamilton Wireless Radio Club

On Mon, Jan 18, 2021 at 11:27 AM Ryan Collier via <> wrote:
Ok. When I get home tonight. I will uninstall everything and reinstall from a purge. Then I will follow up.

On Mon, Jan 18, 2021, 10:45 AM Steve N4IRS <szingman@...> wrote:
No it is not trying to transcode from D-Star. I'm betting you have UDP port problems. The DVSwitch install is pre-configured  to just drop in. When you run DVS it gives you the option to set the UDP ports on Analog _Bridge. Just leave them at default.
If you can put all the ports back to default. Look at the logs for info as to where you are having a failure.

Steve N4IRS

On 1/18/2021 9:13 AM, Ryan Collier wrote:
So I ran that command last night. It made it worse. I now have no audio from DSTAR at all. It keys but no audio. I did turn all software transcoding off. 

My question is. Why when I am in DSTAR mode does it have to pull my DMR information? Are we sure that it is not somehow trying to transcode from DMR?

On Sun, Jan 17, 2021, 11:39 PM Steve N4IRS <szingman@...> wrote:
I'm out of time tonight. If you are saying the built in vocoder works better then the hardware vocoder, something is wrong. Also, you should not have to change port numbers.
To change modes:
/opt/MMDVM_Bridge/dvswitch mode DMR
/opt/MMDVM_Bridge/dvswitch mode DSTAR

Steve N4IRS

On 1/17/21 11:16 PM, Ryan Collier wrote:
I am using the DVSwitch-Server with the repo. Yes Hardware transcoder. The op transcoder sounds and acts better.


Ryan (KB8PMY)
KD8TUZ Hamilton Wireless Radio Club

On Sun, Jan 17, 2021 at 11:01 PM Steve N4IRS <szingman@...> wrote:
How did you install DVSwitch? Are you using a hardware vocoder?

Steve N4IRS

On 1/17/21 10:53 PM, Ryan Collier wrote:
I have been beating my head against the table all weekend over this DSTAR DVSwitch project. The audio coming from DSTAR to ASL is jittery. It is like it is trying to transcode to fast to to many times. Also I can not get DVSwitch to get it in to DSTAR more. When it transmits it looks like this. I: 2021-01-18 03:35:17.678 Begin TX: src=3139164 rpt=113969899 dst=9 slot=1 cc=0 call=KB8PMY To me that looks like DMR.  I have only got it to enter DSTAR mode once. it should look like this:
0000:  24 24 43 52 43 30 33 38 42 2C 4B 42 38 50 4D 59    *$$CRC038B,KB8PMY*
M: 2021-01-18 03:46:21: 0010:  2D 50 3E 41 50 49 35 31 2C 44 53 54 41 52 2A 3A    *-P>API51,DSTAR*:*
M: 2021-01-18 03:46:21: 0020:  2F 30 33 34 36 31 39 68 33 39 32 32 2E 38 35 4E    */034619h3922.85N*
M: 2021-01-18 03:46:21: 0030:  2F 30 38 34 33 32 2E 36 30 57 5B 31 33 32 2F 30    */08432.60W[132/0*
M: 2021-01-18 03:46:21: 0040:  30 31 2F 41 3D 30 30 30 36 36 30 0D                *01/A=000660.*

What all files do you need? Also tried to enable DMR and YSF to get it out of DMR mode and that didn't work. I also have an issue connecting to remote ircddbgateway. Gateway address is my ircddbgateway computer. but the gateway address should be 20028 and local should be 20010. But to get it to work. I had to do gatewayport 20010 and local pot 20028 I am so confused.

All I want to do is get DSTAR linked back to ASL. dummyrepeater doesn't work anymore. I would get good audio through. But when DSTAR went back there was nothing.  No audio or keyup. Then I want to get DMR local 2 on my ASL node. Or is there a better way? Should I get my xlxd reflector working internally and then transcode from there?


Join to automatically receive all group messages.