Use AMBE3000 USB for Dstar with analog_bridge and dvswitch mobile and drop audio


EA5GVK Joaquin
 

I use Ambe3000 USB for only mode Dstar with analog_bridge and dvswitch mobile, but have problem audio drop.
Also problem with usb connect direct or ambe server
Show log:
servidor@blasmakers:/var/log/dvswitch7$ tail -f Analog_Bridge.log
M: 2019-08-05 18:43:13.181 Connecting to DV3000 hardware......
M: 2019-08-05 18:43:13.233 Begin DV3000 decode
M: 2019-08-05 18:43:13.233 DV3000 latency is currently set to 16
I: 2019-08-05 18:43:13.233 Subscriber IDs loaded: 0
I: 2019-08-05 18:43:13.233 Default extended metadata <2145016>
I: 2019-08-05 18:43:13.233 Using hardware AMBE vocoder
I: 2019-08-05 18:43:13.234 Connected to USRP 169.254.42.42:47004
I: 2019-08-05 18:43:13.234 Starting TLV --> Analog_Bridge (decoder) --> USRP thread
I: 2019-08-05 18:43:13.234 Starting USRP --> Analog_Bridge (encoder) -> TLV thread
D: 2019-08-05 18:43:13.234 INFO:{"ab":{"version":"1.3","date":"Mon Jul  1 19:22:35 EDT 2019"},"dv3000":{"ip":"/dev/ttyUSB0","port":"2872","use_serial":"true"},"use_fallback":"false","use_emulator":"false","mute":"OFF","usrp":{"ip":"169.254.42.42","rx_port":"47004","tx_port":"47004","to_pcm":{"shape":"AUDIO_USE_GAIN","gain":"5.00"},"to_ambe":{"shape":"AUDIO_USE_GAIN","gain":"0.50"}},"tlv":{"ip":"127.0.0.1","tx_port":"32103","rx_port":"32100","ambe_size":"48","ambe_mode":"DSTAR"},"digital":{"gw":"2145016","rpt":"214501676","tg":"9","ts":"2","cc":"1","call":"2145016"},"last_tune":""}
I: 2019-08-05 18:43:26.250 USRP server ip change from 169.254.42.42 to new ip 31.4.205.228
D: 2019-08-05 18:43:27.118 INFO:{"ab":{"version":"1.3","date":"Mon Jul  1 19:22:35 EDT 2019"},"dv3000":{"ip":"/dev/ttyUSB0","port":"2872","use_serial":"true"},"use_fallback":"false","use_emulator":"false","mute":"OFF","usrp":{"ip":"169.254.42.42","rx_port":"47004","tx_port":"47004","to_pcm":{"shape":"AUDIO_USE_GAIN","gain":"5.00"},"to_ambe":{"shape":"AUDIO_USE_GAIN","gain":"0.50"}},"tlv":{"ip":"127.0.0.1","tx_port":"32103","rx_port":"32100","ambe_size":"48","ambe_mode":"DSTAR"},"digital":{"gw":"2145016","rpt":"214501676","tg":"9","ts":"2","cc":"1","call":"2145016"},"last_tune":""}
I: 2019-08-05 18:43:27.118 INFO packet sent to USRP client
I: 2019-08-05 18:43:27.132 codec=slin
D: 2019-08-05 18:43:27.132 INFO:{"ab":{"version":"1.3","date":"Mon Jul  1 19:22:35 EDT 2019"},"dv3000":{"ip":"/dev/ttyUSB0","port":"2872","use_serial":"true"},"use_fallback":"false","use_emulator":"false","mute":"OFF","usrp":{"ip":"169.254.42.42","rx_port":"47004","tx_port":"47004","to_pcm":{"shape":"AUDIO_USE_GAIN","gain":"5.00"},"to_ambe":{"shape":"AUDIO_USE_GAIN","gain":"0.50"}},"tlv":{"ip":"127.0.0.1","tx_port":"32103","rx_port":"32100","ambe_size":"48","ambe_mode":"DSTAR"},"digital":{"gw":"2145016","rpt":"214501676","tg":"9","ts":"2","cc":"1","call":"2145016"},"last_tune":""}
I: 2019-08-05 18:43:27.230 USRP packet type: USRP_TYPE_TEXT (EA5GVK) -> 2145016
I: 2019-08-05 18:43:34.421 Begin TX: src=2145016 rpt=0 dst=3166 slot=1 cc=0 call=EA5GVK
D: 2019-08-05 18:43:36.089 End TX


EA5GVK Joaquin
 

It only happens when I receive audio in DVSWICTH mobile.
But if I transmit, the audio is perfect towards Dstar.


Steve N4IRS
 

I see the latency is highlighted.
As root:
cat /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
I expect it will return 16

Try this:
echo 1 > /sys/bus/usb-serial/devices/ttyUSB0/latency_timer

If that works, add:
echo 1 > /sys/bus/usb-serial/devices/ttyUSB0/latency_timer
to /etc/rc.local before the last line (exit 0)

What hardware are you running on?

Steve


On 8/5/2019 2:49 PM, EA5GVK Joaquin wrote:
I use Ambe3000 USB for only mode Dstar with analog_bridge and dvswitch mobile, but have problem audio drop.
Also problem with usb connect direct or ambe server
Show log:
servidor@blasmakers:/var/log/dvswitch7$ tail -f Analog_Bridge.log
M: 2019-08-05 18:43:13.181 Connecting to DV3000 hardware......
M: 2019-08-05 18:43:13.233 Begin DV3000 decode
M: 2019-08-05 18:43:13.233 DV3000 latency is currently set to 16
I: 2019-08-05 18:43:13.233 Subscriber IDs loaded: 0
I: 2019-08-05 18:43:13.233 Default extended metadata <2145016>
I: 2019-08-05 18:43:13.233 Using hardware AMBE vocoder
I: 2019-08-05 18:43:13.234 Connected to USRP 169.254.42.42:47004
I: 2019-08-05 18:43:13.234 Starting TLV --> Analog_Bridge (decoder) --> USRP thread
I: 2019-08-05 18:43:13.234 Starting USRP --> Analog_Bridge (encoder) -> TLV thread
D: 2019-08-05 18:43:13.234 INFO:{"ab":{"version":"1.3","date":"Mon Jul  1 19:22:35 EDT 2019"},"dv3000":{"ip":"/dev/ttyUSB0","port":"2872","use_serial":"true"},"use_fallback":"false","use_emulator":"false","mute":"OFF","usrp":{"ip":"169.254.42.42","rx_port":"47004","tx_port":"47004","to_pcm":{"shape":"AUDIO_USE_GAIN","gain":"5.00"},"to_ambe":{"shape":"AUDIO_USE_GAIN","gain":"0.50"}},"tlv":{"ip":"127.0.0.1","tx_port":"32103","rx_port":"32100","ambe_size":"48","ambe_mode":"DSTAR"},"digital":{"gw":"2145016","rpt":"214501676","tg":"9","ts":"2","cc":"1","call":"2145016"},"last_tune":""}
I: 2019-08-05 18:43:26.250 USRP server ip change from 169.254.42.42 to new ip 31.4.205.228
D: 2019-08-05 18:43:27.118 INFO:{"ab":{"version":"1.3","date":"Mon Jul  1 19:22:35 EDT 2019"},"dv3000":{"ip":"/dev/ttyUSB0","port":"2872","use_serial":"true"},"use_fallback":"false","use_emulator":"false","mute":"OFF","usrp":{"ip":"169.254.42.42","rx_port":"47004","tx_port":"47004","to_pcm":{"shape":"AUDIO_USE_GAIN","gain":"5.00"},"to_ambe":{"shape":"AUDIO_USE_GAIN","gain":"0.50"}},"tlv":{"ip":"127.0.0.1","tx_port":"32103","rx_port":"32100","ambe_size":"48","ambe_mode":"DSTAR"},"digital":{"gw":"2145016","rpt":"214501676","tg":"9","ts":"2","cc":"1","call":"2145016"},"last_tune":""}
I: 2019-08-05 18:43:27.118 INFO packet sent to USRP client
I: 2019-08-05 18:43:27.132 codec=slin
D: 2019-08-05 18:43:27.132 INFO:{"ab":{"version":"1.3","date":"Mon Jul  1 19:22:35 EDT 2019"},"dv3000":{"ip":"/dev/ttyUSB0","port":"2872","use_serial":"true"},"use_fallback":"false","use_emulator":"false","mute":"OFF","usrp":{"ip":"169.254.42.42","rx_port":"47004","tx_port":"47004","to_pcm":{"shape":"AUDIO_USE_GAIN","gain":"5.00"},"to_ambe":{"shape":"AUDIO_USE_GAIN","gain":"0.50"}},"tlv":{"ip":"127.0.0.1","tx_port":"32103","rx_port":"32100","ambe_size":"48","ambe_mode":"DSTAR"},"digital":{"gw":"2145016","rpt":"214501676","tg":"9","ts":"2","cc":"1","call":"2145016"},"last_tune":""}
I: 2019-08-05 18:43:27.230 USRP packet type: USRP_TYPE_TEXT (EA5GVK) -> 2145016
I: 2019-08-05 18:43:34.421 Begin TX: src=2145016 rpt=0 dst=3166 slot=1 cc=0 call=EA5GVK
D: 2019-08-05 18:43:36.089 End TX


EA5GVK Joaquin
 

Now perfect. Many thanks. Resolved.
The hardware is a USB DVSTICK30
THIS IS THE EUROPEAN VERSION OF DV3000 NW


Steve N4IRS
 

 Joaquin,
Mike and I were talking about the fact that you said you use the DV3000 ONLY for D-Star. We are wondering, if you already have a DV3000 plugged in, why not use it for D-Star, DMR, YSFn and NXDN? It is the best vocoder to use for all of those modes.

73, Steve N4IRS

On 8/5/19 3:48 PM, EA5GVK Joaquin wrote:
Now perfect. Many thanks. Resolved.
The hardware is a USB DVSTICK30
THIS IS THE EUROPEAN VERSION OF DV3000 NW


EA5GVK Joaquin
 

You are right. But how the md380 emulator works very well for dmr nxdn and YSFN


El mar., 6 ago. 2019 23:18, Steve N4IRS <szingman@...> escribió:
 Joaquin,
Mike and I were talking about the fact that you said you use the DV3000 ONLY for D-Star. We are wondering, if you already have a DV3000 plugged in, why not use it for D-Star, DMR, YSFn and NXDN? It is the best vocoder to use for all of those modes.

73, Steve N4IRS

On 8/5/19 3:48 PM, EA5GVK Joaquin wrote:
Now perfect. Many thanks. Resolved.
The hardware is a USB DVSTICK30
THIS IS THE EUROPEAN VERSION OF DV3000 NW


Steve N4IRS
 

Yes it does, but the question still stands, if you have the DV3000 available why not use it since md-380 is good but DV3000 is better. Unless you disagree about the quality.

On 8/6/19 5:47 PM, EA5GVK Joaquin wrote:
You are right. But how the md380 emulator works very well for dmr nxdn and YSFN

El mar., 6 ago. 2019 23:18, Steve N4IRS <szingman@...> escribió:
 Joaquin,
Mike and I were talking about the fact that you said you use the DV3000 ONLY for D-Star. We are wondering, if you already have a DV3000 plugged in, why not use it for D-Star, DMR, YSFn and NXDN? It is the best vocoder to use for all of those modes.

73, Steve N4IRS

On 8/5/19 3:48 PM, EA5GVK Joaquin wrote:
Now perfect. Many thanks. Resolved.
The hardware is a USB DVSTICK30
THIS IS THE EUROPEAN VERSION OF DV3000 NW