SmartSDR v3.8.20 and the SmartSDR v3.8.20 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
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.
FLEX API panadapter antenna select command not working
Can anyone tell me why this API command is rejected by the radio?
C12|display pan s 0x40000001 ant=ANT1
I get this returned:
0x5000002D Bad field
Best Answers
-
Hi Gary, it took a bit of experimentation, but I figured out:
CD24 | display pan s 0x40000000 rxant=ANT1
This works on panadapter 0 on my 6400. I have not figured out how to set the TX ant. I assume I need a slice param for that.
Hopefully this helps.
0 -
Hello Gary,
As Len has pointed out, the SmartSDR API Wiki documentation does not always match the newer versions of software. I am running Version 2 and have found that to be true.
The method I have used to resolve the differences is to transcribe the radios TCP status messages and compare the name/value pairs with the Wiki documentation. Here is a link to my list with one scu, one panafall and one slice receiver:
http://ab9a.net/flex_control/6600_messages.txt
It shows: display -> pan -> 0x40000000 -> rxant=ANT1
This agrees with the name/value pair Len discovered.
This system isn’t fool proof. There are name/value pairs in the list that are not settable there and are report only. And some name/value pairs that are settable there that aren’t in the Wiki documentation ie. slice rit and xit. But, comparing the list, with a little insight into the radio’s architecture:
Ant -> SCU -> Panafall -> Slice Receiver
And some experimentation will usually get you there.
73,
Clay, AB9A
1
Answers
-
Thanks for the information and it does work with the rxant= command. I thought maybe it was a command format issue as there had to be a way to change antennas. I should have tried various combinations, but also thought maybe someone had already done that and would share their findings as you both did.
I'll keep that list handy and refer to it if I have problems in the future. Thanks for sharing it.
Gary
K6HN
0 -
Hi Gary,
Here is how you can set antennas using slice set commands instead of panadapter commands:
CD24 | slice s 0 rxant=ANT2
CD24 | slice s 0 txant=ANT2
Depending on what you are doing, one may be preferrable over the other. In any case, changing the TXANT looks like it needs to be done with the slice set command.
0 -
Hi Len,
Thanks for the info, I was aware of those commands. I created a GUI client with a panadapter and it seems to have a separate antenna selection for the pan vs a slice. Maybe it's the way I am doing it, but it's all working well now.
0 -
Great to hear! Are you writing code for a controller like an Arduino or Pi or is this a windows app?
0 -
Using node-red and these nodes.
Release of node-red-contrib-flexradio nodes v1.1! — FlexRadio Community
Node-red offers simplified programming for us non-skilled programmers. All I really need to know is basic Javascript.
0 -
Very cool!
0 -
I found another command that isn't working for me.
'slice list'
I am trying to get a list of active slices in the radio.
0 -
Hi Gary, that command works. Here is the command and results:
"CD22 | slice list"
R22|0|0 1 | In this case, I have two slices open, 0 and 1.
R22|0|0 | In this case, I only have one slice open, slice 0.
R22|0|| And for completeness sake... No slices are open.
0 -
Thanks Len. I must be doing something wrong. I'll look into it.
0 -
Hello Gary,
There is another way to get the use status of a slice receiver that’s not explicitly spelled out in the API:
Each slice has an “in_use=0/1” name value pair that it reports over the slice TCP status message.
If you parse and capture the “in_use=“ state, you can query each slice receiver and maintain your own list.
73,
Clay, AB9A
0
Leave a Comment
Categories
- All Categories
- 260 Community Topics
- 2.1K New Ideas
- 538 The Flea Market
- 7.6K Software
- 6K SmartSDR for Windows
- 147 SmartSDR for Maestro and M models
- 367 SmartSDR for Mac
- 242 SmartSDR for iOS
- 236 SmartSDR CAT
- 175 DAX
- 345 SmartSDR API
- 8.8K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 43 FLEX-8000 Signature Series
- 859 Maestro
- 43 FlexControl
- 837 FLEX Series (Legacy) Radios
- 807 Genius Products
- 424 Power Genius XL Amplifier
- 280 Tuner Genius XL
- 87 Antenna Genius
- 227 Shack Infrastructure
- 153 Networking
- 409 Remote Operation (SmartLink)
- 119 Contesting
- 639 Peripherals & Station Integration
- 116 Amateur Radio Interests
- 821 Third-Party Software