Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
How to Receive Technical Support::
If you are needing assistance with FlexRadio products, 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.

Flex Text Commands and Responses

Dan Trainor
Dan Trainor Member ✭✭✭

I am looking for a complete listing of Commands eg C|… and Responses eg. R|… I am not on Windows, so I can't use FlexLib C++ API method, instead I will interact with the Command/Response Text method. I am writing a small personal app for native macOS using Xcode / Swift and I would like an updated and accurate list of all Commands and their respected Response Text formats. My app will construct Text C|… Commands and send them over [Radio IP]:4992 and receive R|… Responses which I will parse and process. I found the FlexLib but that is in C++ form and I found an older Wiki page for Commands, but it does not look complete. I really would like to have a complete list of Command and Response definitions for use in the Text form as a reference. Thank You in advance! Dan WA1QZX

Comments

  • Mick  W8BE
    Mick W8BE Member ✭✭✭
    edited April 26

    Dan the wiki pretty much has what is available.

    To get a list of meter's use c19|meter list. Each command set has it's own format/parameters.

    image.png
  • Dan Trainor
    Dan Trainor Member ✭✭✭
    edited 10:27AM

    Yes, I have read this Wiki. Unfortunately, it is incomplete and way out of date. So, still looking for documentation. Meanwhile, I am have AI (Chat GPT) take the FlexLib C++/C# source code interface files and generate documentation. It has to infer a lot of how one would use all these methods and in what scope and sequences. So, it may not work. Ideally, it takes someone at Flex to sit down and write the explanations with examples. Anyway, that is where I am. If anyone knows of any leads on this type of documentation, please post. de WA1QZX

  • Mike-VA3MW
    Mike-VA3MW Administrator, FlexRadio Employee, Community Manager, Super Elmer, Moderator admin
    edited 12:49PM

    Dan, I wrote an entire client on Claude Code by feeding it just the Wiki and other than a few hiccups with the panadapter and waterfall. I think you'll find the AI is pretty smart enough. Just think like a project manager, not a coder.

  • Dan Trainor
    Dan Trainor Member ✭✭✭

    Yeah, I am using ChatGPT AI which is assisting me in writing a Dash Board type app for my Flex Radios (the type dash board you may commonly see inNode-Red). Except, this app is a native macOS app written using Apple Xcode / Swift / SwiftUI. Why? Because I want to learn Swift as a language. To your suggestion, I am working with AI as sort of a partner because I like to design and code - it is what I have done all my career as a professional software engineer. Anyway, I looked at this Wiki documentation and it is without a doubt, old and incomplete. And then, I fed it to AI partner to see what he/she? thought about this and after analysis it was determined by AI that the documentation does not reach the level of quality and completeness for our use. And worse, it is not up-to-date. That brought my Partner and I to 3 ideas or paths to go down: 1) Continue to look for documentation of the Flex command/response level API - that is an ongoing search - hence this post. 2) Reverse Engineer the 4.2 FlexLib C++/C# API source code and infer command/response syntax and use. 3) Write the application without a complete set of documentation - which is what we are doing now. The app is coming along well. But, when it comes to Flex Radio commands sent and received, we are basically throwing spaghetti against the wall and see what is thrown back real-time, So we are issuing commands: Flex> sub radio all , Flex> sub slice all, etc and have AI analyze the response from parser / parser log we created. That way, I and my AI partner can listen to what we call the "Radio Chatter" to see what is actually going on. By listening, recording and analyzing the data on port 4992 we can see everything as it happens and what the message formats are. BUT, We would rather have a document that explained it accurately and completely from the start, rather than sniffing around. I am still looking and asking around for documentation. I found a patchwork of attempts to write documentation, but they all appear to be dated. If you know of any documentation, please post resources. Thanks! de WA1QZX

  • KD0RC
    KD0RC Member, Super Elmer Moderator

    Simon, NV0E has generated a wiki based on FlexLib. He told me last night that he would generate a new one based on 4.2 when it releases. He plans on creating a new GitHub location and sharing it with the Community. His current wiki is hard to find, so he will remedy that with the new one.

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.