Help with op25, liquidsoap, and alpha tags...

Status
Not open for further replies.

KG5HFL

Member
Joined
Feb 1, 2021
Messages
17
Location
Beaumont, Texas
Can't seem to get alpha tags to show up and I'm guessing I'm missing a step. Watching the liquidsoap logs I'm getting metadata update error 404. Any Suggestions?
 

KG5HFL

Member
Joined
Feb 1, 2021
Messages
17
Location
Beaumont, Texas
11/05/22 15:01:44.487356 voice update: tg(305), freq(853712500), slot(-), prio(2)
11/05/22 15:01:44.598046 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:45.853183 voice update: tg(305), freq(853712500), slot(-), prio(2)
11/05/22 15:01:45.985254 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:48.375587 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:51.452031 voice update: tg(285), freq(851537500), slot(-), prio(2)
11/05/22 15:01:51.555926 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:53.225865 voice update: tg(285), freq(851537500), slot(-), prio(2)
11/05/22 15:01:53.334017 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:55.001558 voice update: tg(285), freq(851537500), slot(-), prio(2)
11/05/22 15:01:55.129517 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:56.093386 voice update: tg(285), freq(851537500), slot(-), prio(2)
11/05/22 15:01:56.223808 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:01:58.686725 voice update: tg(285), freq(851537500), slot(-), prio(2)
11/05/22 15:01:58.795234 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:02:00.190280 voice update: tg(285), freq(851787500), slot(-), prio(2)
11/05/22 15:02:00.302947 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:02:02.237467 voice update: tg(285), freq(851787500), slot(-), prio(2)
11/05/22 15:02:02.359631 meta_server::send_metadata(): metadata update error: 401
11/05/22 15:02:04.764357 meta_server::send_metadata(): metadata update error: 401
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,409
Location
Talbot Co, MD
The error number is an http error
401 would be authorization failure.
404 would be a file not found

Suggest you increase the logging to -v 11 and then re-run the scenario so you can see the actual URL being sent to the streaming service. Sometimes the answer is as simple as an extra "/" in the configuration file.
 

KG5HFL

Member
Joined
Feb 1, 2021
Messages
17
Location
Beaumont, Texas
The error number is an http error
401 would be authorization failure.
404 would be a file not found

Suggest you increase the logging to -v 11 and then re-run the scenario so you can see the actual URL being sent to the streaming service. Sometimes the answer is as simple as an extra "/" in the configuration file.

62.006250
11/14/22 12:49:58.746670 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.746845 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.746908 [0] NAC 0x4e0 TSBK: op=3b : 3b 00 00 be e0 04 e6 02 19 60 73 7c
11/14/22 12:49:58.746964 [0] NAC 0x4e0 TSBK: op=3a : 3a 00 00 34 e6 01 0b 02 19 60 57 54
11/14/22 12:49:58.746982 [0] NAC 0x4e0 TSBK: op=0b : 8b 90 00 00 00 00 00 00 02 19 e9 79
11/14/22 12:49:58.747003 set tgid=1579, srcaddr=0
11/14/22 12:49:58.747096 [0] tsbk(0x02) grp_v_ch_grant_updt: ch1: 851.787500 ga1: 1579 ch2: 851.787500 ga2: 1579
11/14/22 12:49:58.747243 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.747290 [0] tsbk(0x3b) net_sts_bcst: wacn: bee00 syid: 4e6 ch1: 219(854.362500)
11/14/22 12:49:58.747355 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.747401 [0] tsbk(0x3a) rfss_sts_bcst: syid: 4e6 rfid: 1 stid: 11 ch1: 219(854.362500)
11/14/22 12:49:58.747463 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.882225 [0] NAC 0x4e0 TSBK: op=39 : 39 00 01 0b 04 d5 04 01 0f 04 c4 f9
11/14/22 12:49:58.882266 [0] NAC 0x4e0 TSBK: op=09 : 09 90 0f 00 00 00 00 00 00 00 ef 7f
11/14/22 12:49:58.882278 [0] NAC 0x4e0 TSBK: op=3c : bc 00 00 34 e6 01 08 17 0c 70 1d 27
11/14/22 12:49:58.882336 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.882447 [0] tsbk(0x39) sccb: rfid: 1 stid: 11 ch1: 4d5(858.737500) ch2: 10f(852.700000)
11/14/22 12:49:58.882586 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.882665 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.882714 [0] tsbk(0x3c) adj_sts_bcst: rfid: 1 stid: 8 ch1: 170c(773.281250)
11/14/22 12:49:58.882774 tsbk(0x3c) adj_sts_bcst: 762006250 6250
11/14/22 12:49:58.885366 [0] NAC 0x4e0 TSBK: op=33 : 33 00 23 38 40 64 0a 25 15 84 48 4b
11/14/22 12:49:58.885404 [0] NAC 0x4e0 TSBK: op=33 : 33 00 33 a5 80 64 09 15 75 62 75 fc
11/14/22 12:49:58.885416 [0] NAC 0x4e0 TSBK: op=05 : 85 90 40 80 00 00 00 00 00 00 68 de
11/14/22 12:49:58.885463 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.885561 [0] tsbk(0x33) iden_up_tdma: 2 freq: 851012500 toff: -45000000 spac: 12500 slots/carrier: 2
11/14/22 12:49:58.885661 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:58.885727 [0] tsbk(0x33) iden_up_tdma: 3 freq: 762006250 toff: 30000000 spac: 12500 slots/carrier: 2
11/14/22 12:49:58.885818 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.018893 [0] NAC 0x4e0 TSBK: op=3d : 3d 00 43 22 70 64 0b 25 6e 84 b5 a9
11/14/22 12:49:59.018936 [0] NAC 0x4e0 TSBK: op=30 : 30 00 00 04 2a 2d 6e 96 3e 00 1e ed
11/14/22 12:49:59.018949 [0] NAC 0x4e0 TSBK: op=02 : 82 00 00 7d 06 2b 00 7d 06 2b 67 76
11/14/22 12:49:59.019019 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.019101 [0] tsbk(0x3d) iden_up: id: 4 toff: -39.000000 spac: 12.500000 freq: 935.012500
11/14/22 12:49:59.019236 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.019347 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.019411 set tgid=1579, srcaddr=0
11/14/22 12:49:59.019675 [0] tsbk(0x02) grp_v_ch_grant_updt: ch1: 851.787500 ga1: 1579 ch2: 851.787500 ga2: 1579
11/14/22 12:49:59.154526 [0] NAC 0x4e0 TSBK: op=3b : 3b 00 00 be e0 04 e6 02 19 60 73 7c
11/14/22 12:49:59.154566 [0] NAC 0x4e0 TSBK: op=3a : 3a 00 00 34 e6 01 0b 02 19 60 57 54
11/14/22 12:49:59.154578 [0] NAC 0x4e0 TSBK: op=39 : b9 00 01 0b 01 0f 04 05 75 04 29 d2
11/14/22 12:49:59.154805 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.155005 [0] tsbk(0x3b) net_sts_bcst: wacn: bee00 syid: 4e6 ch1: 219(854.362500)
11/14/22 12:49:59.155217 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.155272 [0] tsbk(0x3a) rfss_sts_bcst: syid: 4e6 rfid: 1 stid: 11 ch1: 219(854.362500)
11/14/22 12:49:59.155339 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.155456 [0] tsbk(0x39) sccb: rfid: 1 stid: 11 ch1: 10f(852.700000) ch2: 575(859.737500)
11/14/22 12:49:59.155797 [0] NAC 0x4e0 TSBK: op=09 : 09 90 0d c0 00 00 00 00 00 00 16 cc
11/14/22 12:49:59.155830 [0] NAC 0x4e0 TSBK: op=3c : 3c 00 00 34 e6 01 06 16 22 70 49 90
11/14/22 12:49:59.155844 [0] NAC 0x4e0 TSBK: op=3d : bd 00 03 22 d0 32 0a 25 10 a2 87 94
11/14/22 12:49:59.155854 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.155952 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.156007 [0] tsbk(0x3c) adj_sts_bcst: rfid: 1 stid: 6 ch1: 1622(771.818750)
11/14/22 12:49:59.156040 tsbk(0x3c) adj_sts_bcst: 762006250 6250
11/14/22 12:49:59.156098 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.156167 [0] tsbk(0x3d) iden_up: id: 0 toff: -45.000000 spac: 6.250000 freq: 851.006250
11/14/22 12:49:59.291316 [0] NAC 0x4e0 TSBK: op=3d : 3d 00 13 25 e0 32 09 15 75 62 1b 36
11/14/22 12:49:59.291416 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.291489 [0] NAC 0x4e0 TSBK: op=05 : 05 90 40 80 00 00 00 00 00 00 8c ea
11/14/22 12:49:59.291509 [0] NAC 0x4e0 TSBK: op=33 : b3 00 23 38 40 64 0a 25 15 84 ac 7f
11/14/22 12:49:59.291949 [0] tsbk(0x3d) iden_up: id: 1 toff: 30.000000 spac: 6.250000 freq: 762.006250
11/14/22 12:49:59.292055 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.292434 nac 4e0 type 7 state 1 len 10
11/14/22 12:49:59.292628 [0] tsbk(0x33) iden_up_tdma: 2 freq: 851012500 toff: -45000000 spac: 12500 slots/carrier: 2


Is what I'm seeing now after changing to v11, but still no tags.
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,020
Location
NE Wisconsin
David,

There isn't any relevant data in the logfile to address this issue. I would be willing to assist over the phone and remotely if you want to
send me a PM and wherby we can exchange contact information. Alternatively, you might consider posting all of your configuration files
while being sure to redact passwords and mountpoint information.

Bill
 

KG5HFL

Member
Joined
Feb 1, 2021
Messages
17
Location
Beaumont, Texas
./rx.py --nocrypt --args "rtl=1" --gains 'lna:36' -S 960000 -q -2 -d 10 -v 11 -2 -T trunk.tsv -V -w -M meta.json 2> stderr.2

********************
op25.liq

#!/usr/bin/liquidsoap

# Example liquidsoap streaming from op25 to icecast
# (c) 2019-2021 gnorbury@bondcar.com, wllmbecks@gmail.com
#

set("log.stdout", true)
set("log.file", false)
set("log.level", 1)

# Make the native sample rate compatible with op25
set("frame.audio.samplerate", 8000)

input = mksafe(input.external(buffer=1.0, channels=2, samplerate=8000, restart_on_error=false, "./audio.py -x 1.5 -s"))
# Consider increasing the buffer value on slow systems such as RPi3. e.g. buffer=0.25
# Longer buffer results in less choppy audio but at the expense of increased latency.



# OPTIONAL AUDIO SIGNAL PROCESSING BLOCKS
# Uncomment to enable
#
# High pass filter
#input = filter.iir.butterworth.high(frequency = 200.0, order = 4, input)

# Low pass filter
#input = filter.iir.butterworth.low(frequency = 3250.0, order = 4, input)

# Compression
input = compress(input, attack = 2.0, gain = 0.0, knee = 13.0, ratio = 2.0, release = 12.3, threshold = -18.0)

# Normalization
input = normalize(input, gain_max = 6.0, gain_min = -6.0, target = -16.0, threshold = -65.0)



# LOCAL AUDIO OUTPUT
# Uncomment the appropriate line below to enable local sound
#
# Default audio subsystem
#this one-out (input)
#
# PulseAudio
#output.pulseaudio(input)
#
# ALSA
#output.alsa(input)



# ICECAST STREAMING
# Uncomment to enable output to an icecast server
# Change the "host", "password", and "mount" strings appropriately first!
# For metadata to work properly, the host address given here MUST MATCH the address in op25's meta.json file
#
output.icecast(%mp3(bitrate=16, samplerate=22050, stereo=false), description="op25", genre="Public Safety", url="", fallible=false, icy_metadata="false", host="audio9.broadcastify.com", port=80, mount="********", password="****", mean(input))


********************
meta.json

{
"icecastPass": "******",
"icecastMountpoint": "*****",
"icecastServerAddress": "audio9.broadcastify.com:80",
"delay": "0.0", "icecastMountExt": ".m3u",
"meta_format_idle": "[scanning]",
"meta_format_tgid": "[%TGID%]",
"meta_format_tag": "%TAG%"
}
 

KG5HFL

Member
Joined
Feb 1, 2021
Messages
17
Location
Beaumont, Texas
11/14/22 13:32:05.502941 hold active tg(1559)
11/14/22 13:32:05.503095 voice update: tg(1559), freq(855487500), slot(-), prio(3)
11/14/22 13:32:05.503277 do_metadata state=0: [1559] JCSO PATROL
11/14/22 13:32:05.503623 set_frequency(855487500)
11/14/22 13:32:05.504319 [0] NAC 0x4e0 TSBK: op=33 : 33 00 23 38 40 64 0a 25 15 84 48 4b
11/14/22 13:32:05.504350 [0] NAC 0x4e0 TSBK: op=30 : 30 00 00 04 2a 2d 6e 9c 02 26 dd 70
11/14/22 13:32:05.504365 [0] NAC 0x4e0 TSBK: op=3b : bb 00 00 be e0 04 e6 02 19 60 97 48
11/14/22 13:32:05.555922 metadata update: "http://audio9.broadcastify.com:80/admin/metadata?mount=//***************&mode=updinfo&song=JCSO+PATROL"
11/14/22 13:32:05.556380 type 7 with ts 11/14/22 13:32:05.502364 ignored due to frequency change
11/14/22 13:32:05.558626 nac 4e0 type 7 state 2 len 10
11/14/22 13:32:05.558731 [0] tsbk(0x33) iden_up_tdma: 2 freq: 851012500 toff: -45000000 spac: 12500 slots/carrier: 2
11/14/22 13:32:05.558847 nac 4e0 type 7 state 2 len 10
11/14/22 13:32:05.558950 nac 4e0 type 7 state 2 len 10
11/14/22 13:32:05.559004 [0] tsbk(0x3b) net_sts_bcst: wacn: bee00 syid: 4e6 ch1: 219(854.362500)
11/14/22 13:32:05.618842 metadata result: "401"
11/14/22 13:32:05.618919 meta_server::send_metadata(): metadata update error: 401
11/14/22 13:32:05.639788 [0] NAC 0x4e0 TSBK: op=3a : 3a 00 00 34 e6 01 0b 02 19 60 57 54
11/14/22 13:32:05.639855 [0] NAC 0x4e0 TSBK: op=39 : 39 00 01 0b 04 d5 04 01 0f 04 c4 f9
11/14/22 13:32:05.639873 [0] NAC 0x4e0 TSBK: op=09 : 89 90 0f 00 00 00 00 00 00 00 0b 4b
11/14/22 13:32:05.640097 nac 4e0 type 7 state 2 len 10
 

wgbecks

Active Member
Joined
Jan 17, 2005
Messages
1,020
Location
NE Wisconsin
Dave,

I think I have something that may be helpful to your specific installation if you'll PM me to establish contact offline.

Bill
 

boatbod

Member
Joined
Mar 3, 2007
Messages
3,409
Location
Talbot Co, MD
Curious. A name="..." entry is not part of the regular default op25.liq and it seems to work ok for most people. Is this broadcastify or some other streaming server?
 

KG5HFL

Member
Joined
Feb 1, 2021
Messages
17
Location
Beaumont, Texas
Yes. It's broadcastify. I had to enter a name in order for it not to transmit my mount point. Idk. It's working great now. Thanks for your work.
 
Status
Not open for further replies.
Top