Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR, Power Genius, Tuner Genius and Antenna Genius Software?
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
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
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.
Discover SSDR's Handle
Dick, W3OA
Member ✭✭
I am writing a client program program which responds to user inputs to SSDR. I need to be able to discover SSDR's Handle so my client does not respond to inputs from other clients (such as a logging program). Using SSDR version 2.
How can my client determine SSDR's Handle?
tnx and 73 - ****, W3OA
How can my client determine SSDR's Handle?
tnx and 73 - ****, W3OA
0
Answers
-
****,
You do not say what programming language you are using. All of my programs are written in VB.Net. Below is a function that my SDRMonitor program uses to find th eSmartSDR client:
=============================
Private Function GetSmartSDRprocess() As Process
Try
Dim strProcess As String = Nothing
Dim strCompare As String = "*SmartSDR.exe"
Dim s As New ManagementObjectSearcher("SELECT * FROM Win32_Process")
For Each obj As ManagementObject In s.Get()
strProcess = Trim(Replace(obj.Item("CommandLine"), Chr(34), ""))
If Not IsNothing(strProcess) Then
If strProcess Like strCompare Then
Return Process.GetProcessById(obj.Item("ProcessID"))
End If
End If
Next
Return Nothing
Catch ex As Exception
Return Nothing
End Try
End Function
=============================
73, Ray, K9DUR
0 -
HI Ray -
Looks like I wasn't specific enough in my question.
For the client I'm using python running on a Raspberry Pi.
I think your function assumes the client and SSDR are running on the same machine.
The Handle I'm looking for is the one in the API that is in the prefix to status messages.
73 - ****, W3OA
0 -
****,
Yes, my function is for a program running on the same computer as the client & returns the Windows handle to the SmartSDR client process..
-- 73, Ray, K9DUR
0 -
Today the only client handle that is exposed via the API is the client handle to your application (handles for other clients like SmartSDR are not shown). This is currently being looked at as something we could change in a future API change. Likely, we would offer a command that would result in a reply or status message that would detail all of the connected applications, their handles, and their program name (and perhaps ip/port for debugging).2
-
I think you guys may be talking past each other. I believe **** is talking about the client handle assigned to a radio client from the radio.
This handle is used when sending status messages to indicate which client initiated the change the caused the status message to be sent.
I think Ray is talking about a Windows handle to a Windows client application.0 -
Eric, you are exactly right. - 73, Ray, K9DUR0
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