Unable to read slice volume gain

  • 1
  • Problem
  • Updated 3 years ago
  • (Edited)
Hello,

I am wondering which is the correct subscription command for reading slice volume gain every time it is changed.

In the startup process my client sends the following subscription commands:

C2|sub tx all
C3|sub atu all
C4|sub pan all
C5|sub slice all
C6|ant list
C7|mic list

but none of them can give me the slice volume gain changes.
Using wireshark I found I miss the updated status for the following command:
C4988|audio client 0 slice 0 gain 85

Can you help me?

73' Enzo
iw7dmh
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes

Posted 4 years ago

  • 1
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes
Is it a potential bug?
After more investigations I found that using "sub slice" command I can get changes on every slice gain controls (agc_mode, agc_threshold, audio_pan, audio_mute, agc_off_level) but no audio_gain.
(Edited)
Photo of Steve - N5AC

Steve - N5AC, VP Engineering / CTO

  • 1030 Posts
  • 999 Reply Likes
You're looking for audio_stream.  An audio_stream is used to combine all of the audio from multiple slices into a single audio stream.

Wait -- no I think you just want to look at the slice for these changes.  The update line looks like this:

slice <number> audio_gain=<0-100> audio_pan=<0-100> audio_mute=<0|1>
(Edited)
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes
Yes, I just want to look for that changes, but please give a look at my parser log.

I can get all update status but not the volume gain one. 
Stautus message

==STATUS==
S8D08D24A|slice 0 audio_gain=50 audio_pan=54 audio_mute=0
===SLICE STATUS UPDATED==

==STATUS==
S8D08D24A|slice 0 audio_gain=50 audio_pan=56 audio_mute=0
===SLICE STATUS UPDATED==

... ???? ...

==STATUS==
S8D08D24A|slice 0 audio_gain=60 audio_pan=56 audio_mute=1
===SLICE STATUS UPDATED==

Initially my slice volume gain is set to 50.

- then I change balance from 54 to 56 - (volume gain is still 50)
- then I set volume gain to 60 (but no status message here)
- then I set audio mute (I get message status here and now volume gain is 60)

It seems I miss a message status only with the volume gain control.
Photo of Steve - N5AC

Steve - N5AC, VP Engineering / CTO

  • 1030 Posts
  • 999 Reply Likes
In general status messages are not sent to the client that requested the change unless the change is not accepted.  For example, if you command the radio to a certain frequency it CAN tune, you just get an OK response.  If you ask to go to a frequency it cannot tune, it will send you a status with the current frequency. Looking at the code for slice audio, it appears to tell the client every time the audio level is updated with an
audio client <client_id> slice <slice_number> gain=###
command.  I'm not in front of a radio at the moment, but if this info does't help, let me know and we'll go find out what is going on.
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes
Ok Steve, it is very clear now the command/response behaviour.
So I repeated my tests using a simple telnet client and SSDR to set volume gain.
It seems the command is immediately accepted from the rig, as I can listen to the level difference, but no status message in the telnet console.
Thank a lot for our answers and enjoy your weekend.

Regards
Enzo
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes
Last update: I promise. :)
Sending the following commands from telnet, also SSDR can't update its slide level.
Update happens only when I change the pan value.

S8D08D24A|slice 0 agc_mode=med agc_threshold=35 agc_off_level=10
C4988|audio client 0 slice 0 gain 2
R4988|0|
C4988|audio client 0 slice 0 gain 80
R4988|0|
C4988|audio client 0 slice 0 gain 50
R4988|0|
C4988|audio client 0 slice 0 pan 20
R4988|0|
SE5FB529E|slice 0 audio_gain=50 audio_pan=20 audio_mute=0
Photo of William Hemmingsen

William Hemmingsen

  • 573 Posts
  • 278 Reply Likes
Yes I have notice this also, Pan updates the display in SmartSDR, but slice gain is not updated until pan is updated. 
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes
Sorry if I ask for it again.
I am wondering if are there any news about this issue.

73' Enzo
iw7dmh
Photo of Steve - N5AC

Steve - N5AC, VP Engineering / CTO

  • 1030 Posts
  • 999 Reply Likes
I just looked at the code in the radio and the radio should always send out an update to all clients when the adjustment is made.  Can you confirm that you are receiving the status message in the telnet client when the change is made?  Is it just that SmartSDR is not showing the update?
Photo of IW7DMH, Enzo

IW7DMH, Enzo

  • 353 Posts
  • 84 Reply Likes
No, I can't.
Status message isn't sent in the telnet when I send any gain command (like C4988|audio client 0 slice 0 gain 50).
I suppose this is the reason that SSDR, and any other subscripted client, can't be noticed about gain adjustements.
If I send a pan command I get the status message.
(Edited)
Photo of Steve - N5AC

Steve - N5AC, VP Engineering / CTO

  • 1030 Posts
  • 999 Reply Likes
OK I found and fixed this issue this afternoon.  It'll be in the next release of SmartSDR. (#1348)