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 check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Need the latest SmartSDR and Power Genius Software?
SmartSDR v3.1.12 and the SmartSDR v3.1.12 Release Notes. | SmartSDR v2.6.2 and the SmartSDR v2.6.2 Release Notes.
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes. | Power Genius XL Firmware v3.4.16. | Power Genius XL Utility v2.2.10.
SmartSDR v3.1.12 and the SmartSDR v3.1.12 Release Notes. | SmartSDR v2.6.2 and the SmartSDR v2.6.2 Release Notes.
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes. | Power Genius XL Firmware v3.4.16. | Power Genius XL Utility v2.2.10.
If You Haven't Tried the API Yet...
Leave a Comment
Categories
- 67 Community Topics
- 1.9K New Ideas
- 118 The Flea Market
- 5.4K Software
- 4.9K SmartSDR for Windows
- 35 SmartSDR for Maestro and M models
- 84 SmartSDR for Mac
- 143 SmartSDR for iOS
- 149 SmartSDR CAT
- 66 DAX
- 278 SmartSDR API
- 7K Radios and Accessories
- 5.8K FLEX-6000 Signature Series
- 553 Maestro
- 14 FlexControl
- 721 FLEX Series (Legacy) Radios
- 148 Power Genius Products
- 117 Power Genius XL Amplifier
- 10 Power Genius Utility
- 21 Tuner Genius
- 41 Shack Infrastructure
- 22 Networking
- 88 Remote Operation (SmartLink)
- 50 Contesting
- 127 Peripherals & Station Integration
- 61 Amateur Radio Interests
- 403 Third-Party Software
Comments
C# .Net doesn't have a native MIDI class available, but there are a few available -- there's even one on CodeProject (ugh...) that's been regularly revised and gets good reviews.
You'll certainly learn a lot getting this to work, AND you'll get an awesome sense of accomplishment.
de Peter K1PGV
If you don't mind C#, then FlexLib is the way to go with this and is pretty straight forward. FlexLib and the underlying Ethernet API let you fully control the radio.
If you aren't into C#, then you have more work to do as you will have to provide an equivalent for FlexLib in whatever language/platform you want.
Although some of the bozos on this community (no present addressee included in this comment BTW) think that just because a pC and a Mac both use the Intel processor that software can be trivially ported over... we know the issues.
Writing a FlexLib alternative isn't hard - its a lot of code which basically maps to message handling to the radio - but it isn't hard. It's just work!
If you want to write the Hercules control software in something other than C#, let me know and I will be very happy to talk you through what you need to do - and how much of it you need to deal with the Hercules.
Stu K6TU
Vern
You can have your router issue a fixed IP to the 6500
All you need is the MAC Address - which is usually discoverable in the Device List inside your router
Vern
Stu K6TU
Hoeever, the radio broadcasts its existence in two different frame formats on UDP port 4991 on the IP broadcast address.
This is the way to discover radios on your local LAN segment. Email me if you want more information on this.
Stu K6TU
Have noted some of the command instructions, shown in the following list http: // wiki.flexradio.com / index.php? Title=SmartSDR_TCP / IP_API, are incomplete or just to difficult for me to understand. I hope it is the later.
Vern
I'm slowly documenting pieces as I go along but it was an after thought on my part to start this...
Stu K6TU
So far, after the first two exercises, I am convinced that this is not going to be too much over my head... just enough to challenge and stretch me!
It is going to be fun. I haven't learned a new programming language since the 90's! (If you don't count trying to learn various Distros of Linux.)
Thanks, guys, for the encouragement.
Ken - NM9P
I don't know how to post the files somewhere which is accesable, so I'll just offer to mail it to anyone who is interested. You can shoot me an email at [email protected]
but how i actually Read a Slice info for read VFO frequency ??? and opn all above exemple it seem to remove slice then add new one on a knot frequency , but on my side i need to poll radio VFO and read it ..
also a exemple of how discover radio IP may usefull ...
i try to use the Telnet commnad in a Raspberry-Pi for read VFO and Then switch external RF relay trough it GPIO for route signal the right Transverter
You need to use "sub slice all" in order to get status updates about all slices. Here's an example: I have inserted line breaks to make it (a little!) easier to read.
The S88FB390B token at the beginning of the line is S for Status and then the ID handle for this client. You will need to parse these messages to extract the information you need.
Radio discovery is done via a UDP Broadcast on port 4992. There are two formats of discovery packets supported in release 1.3 - the original format and a new VITA-49 encoded packet. Only the VITA-49 format is supported from release 1.4 forwards.
If you search here on the community, you will find a message from Steve Hicks that includes the format of the VITA-49 discovery packet. The payload of that packet is in ASCII format and easily extracted without knowledge of the VITA-49 header if you don't need to support that for other reasons.
You should be easily able to do what you describe using PHP, Ruby, Python etc to open two sockets - one for the UDP broadcasts to discover the radio and then the second to create a TCP socket to the radio API command stream.
Hope this helps!
Stu K6TU
that telnet feature was really amazing ;-) ,so tat turn my raspberry-pi into band decoder
73! all and have great new year
Vern
james
WD5GWY
Vern
Would you communicate with me off the NET here ?
Vern
I am trying my hand at C#. I have some source code that compiles just fine. When I RUN it it has an issue with binding. Does anyone have a snippet/tip of code that will allow me to monitor the UDP VITA-49 packets on port 4992? Been to a lot of forums without success. TCP info is OK.
The reason I mention Python is that it has a very good interactive component. You can type a command and see the results. While, you can do the same thing with a simple TELNET terminal program, such as PuTTY, but Python also allows you to create functions to automate things, and you can call these functions directly from the command line. For example, you could write (and I will be writing) a function to encode the various radio commands so that I can just call a function like freq(14200000) to set the frequency to 14.200 MHz. You can also write functions to decode the response so you don't have to parse it manually. All in all, this makes it easy to experiment with API features. Once you develop a library of functions, you can build those functions into a working program. Or you can use Python as a super scripting language.
Python is free to download and install. Check out www.python.org.
>I wonder how hard it would be to develop for the Flex in Mono Develop for Linux?
Well, Mono supports C#... so it *should* support Flexlib without any changes (or, at least, without MANY changes).
> how do I reference a method in the Flex.Smoothlake.Vita
You can add a reference to either the whole FlexLib project (so you can trace through the source code from your own application), or to the library that FlexLib produces.
See http://msdn.microsoft.com/en-us/library/wkze6zky.aspx
Don't forget to add the appropriate "using" statement in your code module.
Peter K1PGV
I don't know which .cs file in the first in line to use to set up for 'receive data' packet(s). I suspect that is why FLEX wants the developers to find out for them selves. Don 't know for sure? I still need to find the proper way to call a method in a .cs file
Vern
Using Solution Explorer, I 'right' click on Solution VITA-a (1 project), my project title. Window pops up and I choose 'Add'. Window pops up and I choose 'Existing Items...'. I work my way to the FLEXLib & choose the 'VITA' folder, open same and select 'VitaSocket.cs'. Highlight it and click 'Add' & it appears in the Solutions Explorer under the Solutions Items grout(?). Is it now ready for action?.
I have had all the .cs VITA files in the Solutions Items group(?) before but I could not see that I was doing anything positive with them. i.e, I could not call a PUBLIC method from anyone of the .cs files. So again, how do I call a 'method' from a .cs file?
Cut me off when you feel i am being ridiculous....
Vern
Vern: The easiest way is to add the PROJECT not the FILES to your existing SOLUTION.
The put a USING statement for the namespace in your own CS file.
I'm not home, so I don't have FlexLib in front of me to be able to give you the precise steps.
Or, include reference to the FlexLib DLL... and (again) put the appropriate USING statement in your CS file.
Then just call the function.
Mr. de Ponte has generous offered to provide his existing project, so you can see how things hang together. You probably won't want to use his specific project directly, though... given he's using WPF. Or, I don't know... maybe you do.