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
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
client disconnect returns 'Invalid client handle (not found)'

I am trying to disconnect a non gui client and it fails with a not found error message.
As you can see the non gui client handle in the discovery message. I am sending :
client disconnect 0x6EA67CEC
Which according to the wiki should disconnect a gui or non gui client
C[D]<seq_number>|client disconnect <handle>
<handle> = an optional client handle (32-bit hex value sent to client on connection)
However I am getting and error that indicates an invalid client..
request: "client disconnect 0x6EA67CEC"sequence_number: 15 status_code: "0x50000062"
From what I can tell I am sending the cmd correctly.
Thanks in advance
Answers
-
Hi Mick, I did some experiments with disconnects some time ago and could only get the non-specific (disconnects everything) one to work.
As it turns out, I didn't really need it for any of my applications.
So I wonder if you really need it or not. You might want to comment on what you are using it for.
0 -
Ken,
You saw my dashboard where I show the gui. I have it tracking the active slice in SmartSDR. When I disconnect SmartSDR the client gui is deleted but not this one. It shows up as an active client and the only way to clear it is to power the radio off. If I start SmartSDR again, then I get the message that all clients are in use.
0 -
Oh, I see… Try a plain client disconnect without the client ID.
0 -
I tried that Ken it does not work either. The only way I clear out the client is to disconnect the entire flow. I can do that but I was hoping for a more elegant solution.
Regards
0 -
Hi Mick, I just looked through my TeensyMaestro code and see that the disconnect code that Enzo, IW7DMH created in his Flex Arduino library does indeed do an Ethernet stop. So I suppose that he had the same issue getting the disconnect API command to work.
I had the same issue as you at one point, so in my power-down callback routine, I do a disconnect (actually an Ethernet stop) when powering off the TeensyMaestro. In my case, since I only connect as a GUI client under very specific conditions, this isn't as important but can be quite annoying. My normal operation is as a non-GUI client.
0 -
Thanks Ken. Maybe some one on the dev team could take a stab at describing why it works after all the effort to ship out the radios calm down.
Regards
0
Leave a Comment
Categories
- All Categories
- 338 Community Topics
- 2.1K New Ideas
- 607 The Flea Market
- 7.9K Software
- 6.3K SmartSDR for Windows
- 170 SmartSDR for Maestro and M models
- 401 SmartSDR for Mac
- 264 SmartSDR for iOS
- 247 SmartSDR CAT
- 185 DAX
- 371 SmartSDR API
- 9.1K Radios and Accessories
- 19 Aurora
- 190 FLEX-8000 Signature Series
- 7.1K FLEX-6000 Signature Series
- 913 Maestro
- 53 FlexControl
- 859 FLEX Series (Legacy) Radios
- 886 Genius Products
- 450 Power Genius XL Amplifier
- 320 Tuner Genius XL
- 116 Antenna Genius
- 281 Shack Infrastructure
- 197 Networking
- 442 Remote Operation (SmartLink)
- 137 Contesting
- 741 Peripherals & Station Integration
- 137 Amateur Radio Interests
- 954 Third-Party Software