Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.

Amplifier remove

Doug - K3TZR
Doug - K3TZR Member
edited October 2018 in SmartSDR API
I see in the API that adding an amplifier is as follows:

C[D]<seq_number>|amplifier create ip=<ip_string> port=<port> model=<model_string> serial_num=<serial> ant=<radio_ant:amp_ant,...>

And I also see in FlexLib that "remove" is somehow used to remove an amplifier but I have not been able to find the right combination of commands to make it happen.

What command string do I send to the Radio to remove an amplifier that was created by the "amplifier create ...." string above?

Answers

  • Ed.G
    Ed.G FlexRadio Employee ✭✭
    edited August 2017
    Today, there is no amplifier remove command since the amplifier is removed when the amplifier client is disconnected. 

    The amplifier create command creates a binding between the connected client that created the amplifier and an amplifier structure in the radio. This allows that 'client' to send/receive meters, prevent the radio from transmitting with an interlock through the API etc. When the client disconnects from the radio, the radio removes the associated amplifier structures. 
  • Doug - K3TZR
    Doug - K3TZR Member
    edited October 2018
    Thanks Ed,

    So the Amplifier entry (as seen in SmartSDR in the Control Panel view that appears for an Amplifier) goes away when the client that sent the "create amplifier ..." message disconnects. Is that correct?

    I tried that with my API Tester. I sent an amplifier create command (from the example in the Wiki). It caused an Amplifier Control Panel to appear in SmartSDR. When I disconnected my client, the Amplifier Control Panel was not removed. Apparently, there are other messages that an Amplifier client sends that I have not accounted for (and are not in the Wiki?).

    As a side note, SmartSDR closed for no apparent reason some minutes after I disconnected my client. The Radio picker now says "There are currently no radios available ...." even though my Radio still seems to be available. I had to do a forced shutdown of the Radio to have it reappear in the Radio Picker.

    Perhaps at some point there will be some sort of document describing the Amplifier client behavior in detail.

    Thanks again,

    Doug

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.