Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR or 4O3A Genius Product Software?
SmartSDR v3.9.19 and the SmartSDR v3.9.19 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
The latest 4O3A Genius Product Software and Firmware
SmartSDR v3.9.19 and the SmartSDR v3.9.19 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
The latest 4O3A Genius Product Software and Firmware
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.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
How to compile and run smartSDR API on linux Ubuntu 16.04?
Options
Justin Desai
Member
I am trying to use the smartSDR API on my Ubuntu computer so I can communicate with my flex 6400m radio. I have downloaded the api and tried compiling it in multiple ways, however, I just cannot seem to get it to compile. I've tried writing my own C# program that uses some of the methods in the api, but my program cannot find the api libraries.
At this point, I am kind of lost as far as knowing how to even connect to my radio using the api because everything I have tried has not worked.
Will the API even work on linux? Or do I have to communicate manually over the ethernet cable without using the API?
Thank you in advance for your help.
At this point, I am kind of lost as far as knowing how to even connect to my radio using the api because everything I have tried has not worked.
Will the API even work on linux? Or do I have to communicate manually over the ethernet cable without using the API?
Thank you in advance for your help.
1
Answers
-
Justin,
I assume you are trying to use the Flexlib API on Ubuntu. What development system are you using? Visual Studio 2017 can develop software for Linux and then bring in Flexlib as a resource, But I'm not at all sure that Flexlib would properly compile in that environment as Flexlib has many dependencies on resources that may not be available in the Linux world. Discovery if the first step and is quite trivial using Flexlib/Windows, but I don't know if anyone has made it work on Linux. Give it a try.
So, if you strike out there, you may need to use the Ethernet API and perhaps develop your own communication shell (like Flexlib) to simplify interfacing to Flex.
Good Luck and please let us know of the results.
Paul0 -
Paul,
I think you are right, the Flexlib has dependencies on a windows system required before it can even compile.
But now, I am currently working on trying to connect to my radio by ethernet so I can send commands manually. However, I am having trouble establishing the connection in the first place. I can see the IP address of the radio, but when try to create a socket with it, I receive a "connection refused" error.
From my limited knowledge of networking, I'm pretty sure the only information I need are the IP address and the port in order to establish a connection. I know the port for the TCP socket should be 4992, and since I can see and ping the IP address of the radio, you would think I would be able to establish some sort of connection.
Anyway, if anyone has some idea on how to establish a connection between my Ubuntu computer and the flex radio, your input would be greatly appreciated.
0 -
To test out the ability to connect, use telnet. i.e.: telnet e.g. "telnet 192.168.133.13 4992" You will get a bunch of information, plus you can then send commands, such as "c0|client disconnect" to disconnect any current client, for example. Look at the API definition for commands. I have a program that connects, dumps the meter definitions, and subscribes to the S-meters for all slices, then reads the resulting UDP packets and parses them to dump dBm values for all slices. I did this to allow antenna comparisons using the two antenna inputs - creates a csv file for Excel to plot. Runs under Linux.0
Leave a Comment
Categories
- All Categories
- 328 Community Topics
- 2.1K New Ideas
- 593 The Flea Market
- 7.8K Software
- 6.2K SmartSDR for Windows
- 168 SmartSDR for Maestro and M models
- 396 SmartSDR for Mac
- 260 SmartSDR for iOS
- 246 SmartSDR CAT
- 179 DAX
- 369 SmartSDR API
- 9.1K Radios and Accessories
- 15 Aurora
- 158 FLEX-8000 Signature Series
- 7.1K FLEX-6000 Signature Series
- 909 Maestro
- 51 FlexControl
- 854 FLEX Series (Legacy) Radios
- 872 Genius Products
- 446 Power Genius XL Amplifier
- 311 Tuner Genius XL
- 115 Antenna Genius
- 278 Shack Infrastructure
- 196 Networking
- 438 Remote Operation (SmartLink)
- 135 Contesting
- 721 Peripherals & Station Integration
- 136 Amateur Radio Interests
- 942 Third-Party Software