SmartSDR v3.8.19 and the SmartSDR v3.8.19 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Programatically Change MIC input: ACCESSORY LINE IN/MIC
Hi
I want to run a custom built voice keyer through the line in of the accessory socket. Is there a way I can change the DEFAULT Microphone INPUT from MIC to ACC to PC eg like a CAT command or a TCP command?
Something like:
Change to ACC as input
Enable PTT
Play message
Disable PTT
Change to MIC as input
Thank you for any advice.
73s
Marios
5B4WN
Best Answers
-
Hi Marios, the CAT commands are too limited in their capabilities. If you look at the Wiki:
It takes a little getting used to, but once you see how it works, you can find almost all the API commands. There are a few errors and omissions in the Wiki, but generally, everything that you need is there.
What platform and language are you looking at using? If you are planning on using a Windows PC, the .net approach may be easier. I have a GitHub page with some sample code that might get you started.
1 -
I use the command: "mic input <mic>", where "mic" can be "BAL", "MIC", "ACC", and so forth.
Sent to the radio using TCP, port 4992.
Alan. WA9WUD
1
Answers
-
Hi Marios, Yes, that is possible using the Flex API. There is the native (text-based) API that can be used from just about any platform (PC, MAC, Raspberry Pi, Arduino, etc.).
Home · flexradio/smartsdr-api-docs Wiki (github.com)
There is also FlexLib which is a .net wrapper that you can use from Windows. It uses the native API behind the scenes. I have absolutely no .net experience and was able to use this to write a simple utility.
FlexLib: Class List (flexradio.com)
You might also want to check out Node Red. Dave, WO2X and Alan, WA9WUD have put together an extensive library of Flex utilities for Node Red. The utilities use the native API.
Don't hesitate to reach out here if you have questions, we would be happy to help.
0 -
Hi Len
Many thanks for your quick response. I am looking at the raw commands to do so using TCP on port 4992 after I bind to the gui client (or if there is a CAT command)
Finding out in some threads here that there are undocumented CAT commands eg ZZDX0; for DAX off which are not in the official guide (https://edge.flexradio.com/www/uploads/20200818184953/SmartSDR-CAT-User-Guide-1.pdf) makes me hopeful that they may be something that can control the MIC input
Unfortunately looking at those resources you have sent me (which I already looked prior to me sending my message here) I can't immediately see how to do it ie what the actual command is. Anybody knows the actual command. I could try the nodered group also but thought to try here first...
Again thanks for your help
73s
Marios
0 -
Hi Len
PERFECT! Thank you!
I will prototype using golang and then may try what I want in c !
Appreciate your time to help me with finding this info!
73s
Marios
0 -
Hi Marios, If you look in the code in this project, you will find a library and wrapper code in C++ for the Teensy (Arduino) environment. I think that it could be adapted for use on almost any platform. FlexRig-2.0.19 is the library written by Enzo, IW7DMH for the Arduino Due. FlexRigTeensy-2.0.19 is upgraded by me to accommodate V3.xx of the Flex software as well as supporting the Teensy board instead of the Arduino. In the Examples you will find FlexSignature and FlexSignatureTeensy. These are the wrapper code by Enzo that makes life a lot easier. There is a bit to learn about how he set things up, but once you try it, it is a really neat system.
0 -
Thanks to both of you Len and Alan for your responses.
I will have a play
BW
Marios
0
Leave a Comment
Categories
- All Categories
- 289 Community Topics
- 2.1K New Ideas
- 534 The Flea Market
- 7.5K Software
- 6K SmartSDR for Windows
- 146 SmartSDR for Maestro and M models
- 360 SmartSDR for Mac
- 249 SmartSDR for iOS
- 230 SmartSDR CAT
- 172 DAX
- 352 SmartSDR API
- 8.8K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 26 FLEX-8000 Signature Series
- 850 Maestro
- 44 FlexControl
- 847 FLEX Series (Legacy) Radios
- 796 Genius Products
- 416 Power Genius XL Amplifier
- 277 Tuner Genius XL
- 103 Antenna Genius
- 243 Shack Infrastructure
- 166 Networking
- 404 Remote Operation (SmartLink)
- 130 Contesting
- 631 Peripherals & Station Integration
- 125 Amateur Radio Interests
- 870 Third-Party Software