Slice Properties not working

  • 1
  • Problem
  • Updated 5 years ago
The following properties appear to be inoperative in FlexLib:
Slice.AudioGain
Slice.AGCMode
Photo of Steve - K5FR

Steve - K5FR

  • 66 Posts
  • 9 Reply Likes

Posted 5 years ago

  • 1
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 825 Posts
  • 290 Reply Likes
I believe the Slice.AudioGain is handled as a per client value today.  This means that changes in one client aren't reflected in another.  This was done early on when we were attempting to handle the multiple client use case.  We have since moved away from that in favor of supporting the primary use case (a single client).  If this is a desirable feature to be able to control from other applications, we can change this functionality.

I'm not as sure about the AGCMode.  When you say inoperative, what are you trying to do that doesn't seem to work?  We actually use that property to set the AGC Mode in SmartSDR.
Photo of Steve - K5FR

Steve - K5FR

  • 66 Posts
  • 9 Reply Likes
It's hard to say how much either of these will be used
programmatically, I just ran across their not working during my testing.

 Using the Slice0.AGCMode = "FAST"; , or any of the other, commands, produces no
response.


   
Photo of Robbie - KI4TTZ

Robbie - KI4TTZ

  • 484 Posts
  • 78 Reply Likes
I think it would be great to be able to control other clients/apps.  Looks like each connection gets its own ClientID?  Maybe the API could have something like getAllClients() that returns info about each client connection.  A client connection can either allow or disallow updates outside of its own app with a property, "allowExternalUpdates true/false".  And ideally each receiver/panadapter would keep track of which client created it, and which clients are using it (?).  Just throwing some ideas out there.  The use case I'm thinking of is sending a slice receiver from client A to client B programatically.  That would be cool. :)
Photo of Paul RN3A

Paul RN3A

  • 56 Posts
  • 6 Reply Likes
Eric, does the same apply to params like slice.AudioGain and slice.AudioPan?
I am trying to change these with external application, but there is no response from radio. Is there a way around it?
Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 825 Posts
  • 290 Reply Likes
Paul, I think these functions work when you set them.  There is apparently an issue in the v1.1.9 code that causes changes to these functions (Slice Gain, Pan, Mute) not to be reflected in the SmartSDR client if you change them from another program.  We have this written up on our bug system and will post here when that issue is resolved.