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.

Are there any API docs or examples?

Peter K1PGV
Peter K1PGV Member ✭✭✭
edited June 2020 in SmartSDR API
So, I'm looking at some classes... Beside the CAT example, are there any docs at all? Or example code? I see people referencing a Wiki... Where is that, please? Sorry to be so clueless... And a specific question: can multiple apps attach to and attempt to control the same radio and slice at the same time?

Answers

  • Bill - K7UOP
    Bill - K7UOP Member ✭✭
    edited October 2014

    Here's a link to the Wiki, http://wiki.flexradio.com/ .

    There's a lot of information in this forum. I do a lot of searches when looking for details.

    You may have already seen this, but here's a link to a post here called Studying the CAT Project . One of the replies I found interesting was from Eric who explained a simple sequence to connect to the radio.

    Yes, multiple apps can connect to the radio at the same time. Commands are transaction based, so different apps know which responses are meant for them and can send/receive commands from the same objects.

  • Peter K1PGV
    Peter K1PGV Member ✭✭✭
    edited June 2020

    Thanks, Bill.  Much appreciated.  That's some good info for me to start with, at least.

    TU and VY 73 de K1PGV

  • IW7DMH, Enzo
    IW7DMH, Enzo Member ✭✭
    edited January 2017
    Hello Peter, 

    I asked a similar question about a week ago and it was suggested to me a post by Eric: https://community.flexradio.com/flexradio/topics/first_steps_with_flexlib
    Looking better at the software, you'll discover that each step illustrated by Eric is present in the Main class constructor (Main.cs). For a correct usage of the "slice" objects you have to look at the method "ConnectRadio" in the same class. 
    So a good starting point is to study the Cat project. 
    I don't know if I can do it, but I could post a pdf with the class diagram of the "flexlib". I extracted it with Visual Studio 2012 (Ultimate Edition). The class structure is not very complex, but there is a lot of hidden logic that needs to be handled through events. These events are really so many but also very helpful. 

    Just to share our experiences: I think the "Cat" project keep the whole state of the radio (in the class CatStateManager). So on the one hand the program receives commands from the RS232 and on the other it sends the corresponding command via the ethernet port. I still haven't understood how this really happens: for the moment I am stopped at the Execute method in the CatBase CatBase (CatBase.cs). Maybe further explanations by Flex Developer Team could help us. 

    73' Enzo
    iw7dmh

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.